A temperature change and an energy transfer are related through material properties but are not the same quantity. For a uniform phase with approximately constant specific heat, Q=mcΔT estimates energy associated with warming.
What is heat? Energy transferred because of a temperature difference.
Can equal-temperature objects have different internal energies? Yes, because mass, material and state matter.
Anomalous Expansion of Water and Energy in the Environment
Key ideas
Pure liquid water at ordinary pressure is densest at about 4 °C. Warm water from 0 °C to 4 °C and its volume decreases. Warm it above 4 °C and its volume increases. For a fixed mass the volume minimum and the density maximum occur at the same temperature.
A cold band around the middle of a water column cools the nearby water. As it cools towards 4 °C it becomes denser and sinks. Colder water below 4 °C is less dense and can rise towards the top. The lower thermometer approaches 4 °C before the top cools close to freezing.
Surface water that cools towards 4 °C can sink and mix. Further cooling below 4 °C leaves less dense colder water near the surface. Ice floats and slows further heat transfer from the liquid below.