But if the sunlight that produced that power had hit something else instead, it also would have been turned into heat. There's no net heating of the planet from solar power. (Of course, the distribution of heating can change.)
So solar panels are moving heat, not sending it into a black hole somewhere.