I feel like people keep either inventing things to argue against (olive oil) or bringing up scenarios that are purposefully missing the overall point of what people are actually saying.
Again, sure, if you zoom in, eating donuts is probably a bad strategy because you'll be hungry again, and thus eat more calories. But in the grand scheme of things, you CAN eat a donut if you remain below you calories. That is all people are saying. Nothing more. Nothing less.
fwiw, we weight lifters regularly put this into practice. Bulking? add more food. Cutting? less food.
Yes, there are details (gotta hit those macros!), but overall, the strategy boils down to calories in/out.