Here is a link from Harvard saying to stop counting calories[0]. Here is another link from Havard[1] going over the contestants of the biggest loser and how they are doing now.
There is new model The Carbohydrate-Insulin Model of Obesity[2] which has explanation that does explain the edge cases CICO is missing.
But calories are measuring food, and at the moment there is no better way to have overview of how much across different types of food. But CICO itself doesn't help with long term weight loss.
[0]https://www.health.harvard.edu/staying-healthy/stop-counting...
[1]https://www.health.harvard.edu/diet-and-weight-loss/lessons-...