We've been trying that for years and it's clearly not working. Obesity, diabetes, pre-diabetes, heart disease, diseases of chronic inflammation, etc are all at epidemic levels.
Humans aren't perfect automatons that will make perfect choices if given information. We develop addictions, we prioritize the short-term over the long-term, we get tired and choose what's easy and available.
We should align incentives to better outcomes. We restrict alcohol and nicotine and opioids. Taking steps to reduce the societal harm of sugar is a good thing for society.