What you eat can change your metabolism.
This CICO bullshit is honestly no better than middle age alchemy beliefs from people who don't realize humans are far more complex machines than a high school science fair battery but feel smart calling out newton's third law.
Your gut flora, your metabolism, your stress levels, what times you eat, your heart rate, your existing muscle mass, your sleep, vitamin levels, all those affect how much you burn actively and passively, how much you absorb from your food, what sources of energy your body decides to burn, and your energy levels as a whole.
Weight loss is fucking hard for a reason. "Just eat less to lose weight" is akin to telling someone "just use a linter to fix your code". Good idea? Maybe. It usually helps. Silver bullet? fuck no, i don't need to tell you it's way more nuanced and complicated than that.
We have to be realistic on how we communicate how to lose weight _for the masses_. Trust me, I ventured into dietetics only to be jaded at various national and multinational attempts at building watered/dumbed down meal planning advice but throughout the years I realized that you have to have simple and easy to follow guidelines (everyone can understand CICO) so that on the whole, we're getting people to lose weight.
I'm not saying CICO is the silver bullet, far from it, but it WORKS.
Most diets work for the first few weeks because people are engaged by the novelty. Longer term compliance depends a lot on the person, both mentally and physically (including all the complexities of muscle mass, gut biome, and the whole nine yards). There's no silver bullet. You just have to keep at it until you find something that you can stick with.
What works for me is doing my own cooking, keeping a lot of vegetables around, and getting out of the house so that I'm too busy to stuff snacks into my face. I suspect that would work for a lot of people -- though that last part is really difficult with an office job.
That's me. Everybody else, good luck.
When I lost a bunch of weight, I counted the calories of everything I ate for about a year (and still more or less do 15+ years later; calorie content of foods is generally the same). After a few weeks/months, you pretty much memorize the calories of what you're likely to eat regularly. It makes the cost benefit analysis a lot easier, "the next X I eat is 300 calories, is that 300 calories going to provide me the satisfaction the first did?" Personally, I found the answer is almost always no, and when it's not, you generally feel good about it.
And depending on a million different factors, you may lose a lot of energy, burn less, as you hinted to you may lose muscle mass, do damage to your gut flora, all things which after you're done losing a couple kgs will have you wondering "why the fuck am i feeling so weak all the time, and why have I stopped losing weight?"
YMMV. "Make healthier meal choices" is better advice than "eat less, CICO".
Communicating healthy eating, how your metabolism works, how each body reacts different to different kinds of foods, etc is a full time job. In a country (US) where attention spans are constantly being torn in every direction, educating people on the depths of how to correctly lose weight (minimizing muscle loss, maintaining energy levels, efficiently leveraging your body's metabolism) is a losing battle. Yes, jaded and cynical but its reality.
Sure we can be optimistic and _want_ people to lose weight correctly but if you're overweight or obese, the pros of CICO VASTLY outweigh the cons you described.