This is true, but it doesn't matter if people don't do it.
The danger of hyper-optimization is people just giving up altogether. That's why a lot of those intense diets don't work.
Does Keto work? Yes. But does it actually? No. Because being on Keto is very, very hard and people just give up. The vast majority of people who start Keto will not stick to it.
But switching out soda for diet soda is easy. So, if I'm inclined to give suggestions, I'd rather suggest that.