Solar comes with a lot of challenges for large-scale usage as a replacement for coal, nuclear, etc. Really, the only thing better about solar at the moment is that it is available.
First off, the daylight cycle is an obvious concern and there still isn't a great way to store solar energy during the day for use by cities (or generally large consumers) at night. Not to say it's not possible, but people are largely still trying to figure out what the right solution for that is.
Second, the startup requires a significant amount of land in advantageous locations for sunlight. There's a lot of the planet that just won't see the same advantages as others, and transporting energy long distances to them is another unsolved problem.
Lastly, and this is more for fun, but solar won't be as useful when we as a species aren't exclusively on earth anymore. Fusion would be a pretty nice step forward for things like space travel.
Both have a really high startup, but achieving fusion would mean 24/7 clean energy that works regardless of environment.