Given that both of these situations draw energy from the atmosphere, they should be complementary to the goals of climate change mitigation.
I suppose 'covering the Sahara in solar panels' might need a little thought in regards to how it affects weather patterns across North Africa and Europe, but we're a wee way off from there yet.