With eggs it's pretty much: eat them if you like eggs :shrug:
With the Sun... you're already exposing yourself to a giant irradiating ball of fire, but also our bodies are evolved to require some exposure to produce vitD. How much exposure should you get? Nobody really knows. Should you wear sunscreen, or just moderate exposure? Which sunscreen? What good choices are there? It's all a mess.