And if you will be drinking water and consuming diuretics like tea or coffee and picking a stressful occupation like tech you're better off having a supplement in addition to your dietary magnesium.
Better that than the self reinforcing doom loop of stress + diuretics + magnesium deficiency = mental health crisis
Add the double whammy effect of tannins in tea, coffee, wine:
"Tannic acid (TA) is an organic compound belonging to the tannin group. [...] It can also form complexes with mineral components, reducing their absorption. In some cases, this can be beneficial, such as in the case of toxic metals, but sometimes it may have a detrimental effect on the body when it involves essential mineral components like Ca, P, Mg, Na, K, or Fe."
The effect of phytochemicals in our diets, the only form of defense plants have against being eaten, is severely under-researched, and completely ignored by most drive-by dietary advice. As I said elsewhere, cooking helps, but the dose makes the poison. You won't fare well with a diet of beans, spinach and a ton of coffee or tea, that's for sure.
And if you will be drinking water and consuming diuretics like tea or coffee and picking a stressful occupation like tech you're better off having a supplement in addition to your dietary magnesium.
Better that than the self reinforcing doom loop of stress + diuretics + magnesium deficiency = mental health crisis