Almost always you want “real” food over shakes, assuming the shake isn’t just old school blended food!

I see shakes as optimal convenience food options as opposed to optimal.

I do prefer a shake postworkout, especially for a hard session/if training fasted.