My city has district heating which covers around 500k people. The peak output of all the heat plants combined is 239 MW, which is around the same heat output as one or two large data centres.
There are no power plants in my city, so to generate the heat there are heat plants which burn natural gas, biomass or (if supplies get low) something similar to bunker fuel.
Of course it's seasonal, but I'm sure the cost of getting rid of the excess heat in summer would outweigh the current costs of the system (it's more expensive per kWh than a gas boiler), as well as the environmental benefits from not burning all this stuff near where people live.
Demand for hot water would be more consistent throughout the year if not for changes to washing machines and detergents that make it possible to do laundry with absurdly cold water (20 degrees) - which I believe is what makes "fast fashion" possible (the stuff would likely melt apart after few rounds in 60 degrees).
District heating is typically a closed loop high pressure system which is not just pute water but has some nasty additives. You then use a heat exchanger in your basement to heat up your hot water coming out of the tap.
Besides, 45C is what needs to go into the data center. What comes out of it is much hotter and you then need to bring it down to 45C. For example by heating your house or your shower water.
Alternative is to evaporate the water. Not sure how that is more ethical.
As an ethically inclined meat eater (i.e. non-vegetarian) I often prefer eating the parts of the animal that are considered "waste". Sausages (full of things like intestines, liver etc), skewers with chicken hearts, that kind of stuff. Similar to the hot water, at least you can do sth meaningful with the "waste". Arguably more ethical than throwing it away (into which I count biogas generation).