They don't generate heat in the sense that heat is generated from nothing. If the AC is being powered by solar, then the energy that is powering the heat pump has already hit the earth and has become part of that system. The energy that would otherwise have hit the roofing and been radiated is more focused around the radiators, but as soon as that dissipates into the air the difference to the local climate isn't any different.
If the roof was white and reflective then a lot more of that light would be reflected, but most roofing isn't.
Your logic isn't really compatible with the laws of thermodynamics.