The apparent flattening of the Sun's disc observed at sunrise and sunset is due to
the Sun physically changing shape
the same atmospheric refraction phenomenon responsible for advanced sunrise/delayed sunset
clouds blocking part of the Sun
an optical illusion with no physical basis at all