I wholeheartedly disagree.
I used to struggled with weight most of my young years. No matter what I did I achieved incremental advances at best. At some point I decided to start "counting calories", something that I used to frown upon.
To my shock some foods that I ate that I considered "healthy" weren't so much so. This isn't even counting the fact that most experts can't even agree what is healthy or not, and opinions change over time.
Just like with coding, there are some black/white examples where the average person could make an easy distinction, but then there is a wide range of greys in the middle where people might not really know what's "good/bad".