I have a pool heater and an air conditioner, and I'm running both at the same time. They're fifty feet apart, but this thought crosses my mind constantly.
It's a stainless steel coil that you can put on your A/C and then run water from your pool over it to heat the pool.
https://www.hotspotenergy.com/titanium-pool-heat-exchangers/