Again, the assumption that whole food is automatically better is not true. There are good reasons why whole foods are generally healthier (good mix of nutrients, micronutrient, fibers, water), but there is no reason to assume that they have some kind of magical quality in them.
Taste, cravings, satiety etc. are based on evolved heuristics. Heavily processed food can fool those heuristics (and is engineered to do just that), while whole foods can't.
The "magic" therefore is that it's a lot safer to eat whole foods.
Only 'in generally speaking' or 'on average'. There is magical thinking in health food business where generic statements replace knowledge.
Take for example seeds like pumpkin seed, sunflowers etc. Many vegetarians and health conscious people eat lots of these. What they are not aware is that they accumulate heavy metals, especially cadmium. If you are not aware of the heavy metal content of the foods you ingest you should consume them only in moderation.