Earlier quoted context omitted.
The total amount of sugar is less important than the glycemic load and the insulin response caused. Carrots are high in fibre. "The glycemic index is a value assigned to foods based on how slowly or how quickly those foods cause increases in blood glucose levels" [1] Coca Cola® (63) vs Carrots (39). Higher is worse. [1] https://www.health.harvard.edu/diseases-and-conditions/glyce...
Coca Cola® (63) vs White Rice (72). Higher is worse. By using that logic, chicken nuggets and Pizza Hut beat plain potatoes. Clearly not a good recipe for a healthy diet.
If you were making your own baked chicken nuggets or pizza from quality ingredients then they are definitely healthier than potatoes or white rice, assuming the calorie intake was the same.
This is counter-intuitive to most people because of all the misinformation around the benefits of a low-fat diet [1].
[1] https://www.goodreads.com/book/show/24945404-the-obesity-cod...