Agree with all of the comments on timing as the main factor and the difference of food quality at the lounge vs. in the air.
Try to eat at the lounge for quality reasons if timing makes sense and use food/drink on board as “entertainment“ on routes where maximizing sleep is not a priority. In these cases, focus is on the starters (usually good quality and small in size) rather than on the often underwhelming mains.