The alternative for most countries except a handful is that they continue to import oil from the two dozen-ish odd countries who export it.
The policy relevant question then boils down to, in two decades how many countries will be producing enough solar panels to export it? How many will be friendly to my country?