Solar panels are a bond of sorts, that generate income in a way that is independent of what financial markets or the economy are doing. They are completely detached from SORR and there are very few alternatives with that financial profile.
...
Your solar panels would have physical risks, but they do not have market risks unless nuclear fusion is perfected and electricity prices drop to being too cheap to meter.
That's about how I view mine. They're not so much a return as "paying once for a permanent reduction in ongoing costs." Probably in the same category as paying off a mortgage... it's reducing monthly expenses. Yes, I
know it's suboptimal if you assume ever rising markets, but I don't tend to do that, so... ways to reduce my monthly expenses to clamp down "minimum monthly spend" are of value. That our car charges off them too (indirectly, but it can directly charge off them if the grid is down) means I'm reducing my transportation costs even more than I would with grid charging - and I'm independent of grid prices for the large part.
And I've had a bit of physical rework on my system (some junction box issues) that ended up being not a big deal other than having to buy a $450 thermal imager to really figure out what was going on, but I'm not worried about the system long term - if I suffer some catastrophic hailstorm that destroys the panels, I can reasonably assume insurance will cover them (and I can do the work), and otherwise, they should last about indefinitely, even at somewhat lower production numbers than new. The "25 year life" is usually to 80% production, and that's still an awful lot of useful power. I may have to swap a string inverter at some point, which takes about 15 minutes physically and about the same to configure them, and I go on my way. Plus I have a spare just in case.
I'm certain you can "prove" that my panels are a money losing activity based on optimistic assumptions about market performance and some particular assumptions about power prices, and I simply don't care that much. They're pushing my monthly expenses down, a simple payback isn't that long (even on low cost power), and if things go sideways, as they seem to be doing, I still have a productive asset that is providing an awful lot of useful power.