Coral reefs with seasonal temperatures may survive climate change