More power demand -> more renewable power because it's the cheapest way to get more power.
More renewable power -> all expensive/dirty forms of energy become less attractive.
That's a dynamic that's been playing out over the last few decades. Lots of coal plants are closing. Gas plants are getting a lot less attractive as well for the same reasons.
2050 is a year where lots of countries want to be carbon neutral; that's only 29 years from now. Once we are, you can install as much AC as you want/need without having to worry about adding CO2 to the atmosphere. If you have solar on your roof, you can chill your house guilt free right now.
There's also many more times less of them in circulation. Also, arguably, ACs are a drop in the bucket compared to refrigeration (which is roughly the same thing, but in a box).
There are options being explored, IIRC propane (aka. R290) turned out to be a great and environmentally-friendly alternative to hydrofluorocarbons.
Also, some heat pumps use alternate fluids. So, we might clean that up further. But compared to the massive scale with which we are producing CO2 currently, that's a minor issue.
May think that "more energy use" = "bad", but's an oversimplification. It depends where your energy is coming from.
The traditional thinking was that baseload power came from coal and peaking power came from natural gas. This is true for many geographies but not all. There are other mixes. Texas, despite its reputation for fossil fuels, also produces a surprising amount of renewable energy and that has been mix has been growing over the past little while.
I should have clarified that hot -> AC -> more hot dynamic holds until we have enough solar rolled out everywhere it is needed.
Also - in my country recently the peak electricity usage moved from winter to summer because of AC. Nobody had AC 30 years ago, now it's common in offices and people start installing it in their homes. Heating still uses more energy overall, and in worse forms (burning coal and gas, mostly), but this slowly changes.
And (pre-pandemic, at least) office buildings often have far less floor space per occupant - especially meeting rooms.
So here in the UK, where only perhaps 1% of homes have air conditioning, it's not at all unusual for office buildings to have air conditioning.