But we don't. There is no episode or movie that would say latinum cannot be replicated, none to say dilithium cannot be replicated, none to say people can't be replicated. In terms of dialog, everything can be replicated.we know there are things that can't be replicated, latinum from example.
It is said to be too difficult to replicate some things in specific circumstances, though. You obviously don't replicate X if it's cheaper or more convenient or otherwise desirable to obtain X by other means. Thus, you still mine unobtainium, you still weld your starships together from components, and you give birth to your daughter instead of replicating her.
I'd argue the exact opposite. There is zero evidence that our future heroes would wish to save energy - zero dialogue references, zero instances of them choosing the energy-cheaper out of two options. And certainly they don't wish to save energy when making food, because people who don't replicate their food are considered extremely rare luddites or hobbyists whenever the issue arises. (And this for people who don't live aboard starships that have fantastically powerful warp cores and whatnot.)Despite having far less scarcity than we have today, I think there is plenty of evidence that energy is not unlimited in the 24th century and almost certainly not in the 23rd.
As for the "every replicated meal tastes the same" thing, that would depend exclusively on how the information is packaged. Is it trivially easy to make every replicated meal subtly different? It ought to be - except if the "recipe" is somehow packaged to save data storage space, and opening the package is too computing-intensive to justify randomly changing the recipe by 0.000000001% for consumer satisfaction.
But data storage space is another thing the future heroes never worry about. Only handheld instruments, androids or Genesis devices may max out: a starship has a practically infinite capacity for holding information, either thanks to having infinitely powerful memory devices aboard, or tying into a Federation-wide or possibly galaxy-wide network of data storage.
Our heroes saving energy or saving data storage space is akin to us today saving breathing air. It just plain isn't a factor except in very rare emergencies.
Timo Saloniemi