It’s not just about cost. Environmental factors matter, and I also think that having the most diverse sources of energy creates the most flexible system. If one resource becomes more scarce or the supply is disrupted for some reason, we’re not as vulnerable.
Also, we’re not running out of sun for the next few billion years, and if/when we do, we won’t have to worry about energy sources 😀