Photography has certain "rules". "Don't shoot directly into the sun" is one of them. When using my DSLR mirrorless, I'm aware of the damage the sun can do to the sensor. I avoid shooting directly into it. The sun creates flairs, blows out highlights, and over-saturates certain colors. For these very reasons, I sometimes shoot with the iPhone when I see a scene and think the sun's glare will add to the story I want to tell.
We are often in the forest with the rising sun. Occasionally, I let the sun and the scene speak.
sometimes rules need to be broken....