Magnesium is very important but of course the big confounding factor is that a higher magnesium depletion score is also a good indicator that you're consuming more processed foods and fewer whole foods.
Perhaps a high calorie diet (soft drinks, potato chips, etc…) would lead someone to eat less “real food” (meat, vegetables, and grains), and thus overall magnesium would be less.
But still, I don’t know what one would have to focus on eating to avoid magnesium.
Edit: Processed food definitely lacks magnesium to be clear, but it's interesting to think about how it might even be more costly than it appears.
Is that true, there is more magnesium in the husk?
The food industry is evil.