There are a few games that don't have lens flare and make your screen flood with white when you look at the sun. But I think this isn't in most games because most gamers would probably complain about it being too annoying.
I use an RC simulator that does that (I fly model helicopters)
and i have flown a heli into the sun in real life (not on purpose of course) . its very convincing in the sim. as i crashed in real life and every time i do it on the sim i also crash

that's why nowadays i always fly with the sun at my back.