Thinking about this as well.
Seems to be a choice between better attic insulation or an attic fan.
Yeah from my hour of google research it’s either:
A) insulate the attic with sprayfoam or other methods. (And close up all vents?)
Or
B) install an attic fan and more vents if necessary, so the air gets vented outside and the attic doesn’t get much hotter than the outdoor temps.
IINM If you have a blower unit in the attic option B is recommended.
I’d love to hear input from HVAC guys instead of what I see on Reddit