Thankfully it's not a zero sum game. We aren't up against serious limits on how much solar power can be built.
If producing solar panels is profitable, then your purchase gives the manufacturer capital it can use to expand production. And your purchase demonstrates demand, encouraging expansion of production and attracting investment in expansion.
You also become part of economies of scale that reduce the cost for everyone.
And the industry also gains experience from your purchase, pushing it further along the experience curve[1] which tends to increase efficiency.
Buying solar panels to power your air conditioner probably improves the situation for everyone by some small amount. Of course, it's possible that some other choice might improve the situation more, but most people aren't going to feel guilt as long as they haven't made the situation worse.
---