Solar is basically a mortgage for your power. Most people would never rent if they had an option to own. That’s what solar allows you to do.
If the price of power was staying the same it might not be worth it. But the price of power has been going up 3.9% over the last 20 years. Considering the people moving in from CA, strain on grid from EVs, inflation.,, that would be a very conservative estimate going forward.
In the end - if your roof has the space and your net metering is decent. Solar almost always makes sense.