The slime mold guys are currently testing the hypothesis that the potassium in potatoes is why the potato monodiet works…
The mechanism of diets isn’t understood yet - check out Kevin Hall’s metabolic ward study of low fat high carb vs. high fat low carb for some paradoxical results.
I’d be happy finding a diet that consistently works for people before understanding how.