That's a blatantly disingenuous argument that misses the point. Setting aside the accuracy of the 25-year figure, is it easier to buy solar panels once to use them for 25 years or stockpile 25 years' worth of fossil fuel?
I'm not arguing against maintenance items like cleaning, because obviously fossil fuel power plants need maintenance too. I'm directly responding to the perceived geopolitical risk. The question is: is it better for a country to experience a geopolitical risk with a solar-panel-producing nation or with an oil-producing nation? Bringing up items like cleaning is laughably irrelevant because where's the geopolitical risk in cleaning a solar panel?