I am not saying that intermittent fasting is bad or doesn't work.
No!
It works great for a lot of people and helps them achieve their health goals as it gives them an 8 hours window to eat their food, giving their eating habits a solid structure.
But intermittent fasting will fail when you eat caloric-dense food instead of nutrient-dense food during your eating window.
Because every calorie is not the same.
Calories consumed through a cookie are not the same as calories consumed through a banana.