Setting aside a couple things that may be opinions: (1) switching the renewables is good for the planet and (2) prices for electricity, particularly that generated from non-renewable sources, is going to increase at a faster rate than inflation;
And acknowledging that the answer depends significantly on local climate considerations;
If you can afford the up front investment, is installing solar panels a sound financial decision for MOST people in MOST locations?
I wonder a little about the evolving technology; presumably it's NOT financially sound to upgrade the panels regularly. They should last for a long time with minor maintenance requirements if it's going to be a good investment.
I live in a community highly dependent on natural gas for electricity and looking at a looming gas crises so it's something I'm thinking about.