I think healthy/unhealthy food dichotomy is psychologically the same as religious dieting. It fosters feelings of purity, self control, and is a form of in-group signaling.
But our bodies grind down substances to extract calories. It’s a simple mechanism. You can eat McDonalds everyday if you manage intake.