One of the problems I saw with the line of thinking in the OP is that we survive by eating whatever is available, not to optimize nutrition, athletic performance and our physique. If snicker bars grew on trees 10,000 years ago and you were starving, you would eat that shit to live. Doesn't mean you "evolved" to eat it.
The information out there about nutrition is contradictory and overwhelming. But some of it is pretty obvious and consensus at this point. Like eating most fruits and veggies is good. Eating processed foods are bad, in excess.
Stick to a well rounded meal plan that revolves around eating stuff that is definitely good for you. Lean meats with healthy fats are good for you. Eat fruits and veggies. Generally, don't drink calories (sodas, fruit juice, etc.). Don't overcomplicate it unless you are a professional (or aspiring) athlete or bodybuilder or something. If you burn 5,000 calories a day like pro fighters, different story.