This doesn't mean better engineering wouldn't make it less of a political issue. If solar panels got a thousand times cheaper, and battery technology also a hundred times cheaper and more reliable, the use of fossil fuels would just stop as it makes no sense. This is already happening to a degree.
Unfortunately fossil fuels don't have to make sense, they have to make a whole lot of money for a selected few.