An "international market" doesn't help with electricity: you can't transport electricity feasibly across oceans.
Underwater electricity links do exist, and many are planned. https://eepublicdownloads.entsoe.eu/clean-documents/Publicat...
However some existing links are encouraging: https://en.wikipedia.org/wiki/NorNed
Projects: https://en.wikipedia.org/wiki/Submarine_power_cable#Proposed...
The underlying approach is not new and is rather rather quickly adopted and improved: https://en.wikipedia.org/wiki/List_of_HVDC_projects
There are more than a few countries nobody in their right mind would ever want to tie their power grid to.
That’s all. Nothing else.
Revealed preferences today show that it is a solution, given countries are currently happy to be dependent on other nations for the energy source via oil and gas imports. If importing oil and gas is acceptable, then importing solar should be equally acceptable, if not even more acceptable given you can import from more reliable allies instead of authoritarian rogue states that will engage in energy blackmail.
Your point of view seems to be that of wealthy or semi-wealthy and relatively stable nations, without massive rampant corruption. And sure, for those, it may very well work. Who am I to even have an opinion on that?
But who will accept to connect their power grid to that of those countries who are still having weekly, if not daily, blackouts?
The kind of country where corrupt officials accept being paid to get chemical waste dumped into their laps, and consider it a grand idea to dump those into their country’s power plants crude oil?
The kind of country where people just randomly plug themselves into power lines, without any consideration for safety, and regularly burn down a whole block because of it, and shut down power for an entire city in the process?
The kind of country currently facing a war, civil or otherwise, and who’s grid’s instability would affect anybody connected to them?
Nobody in their right mind would willingly expose themselves to such risks.
So sure, like you so eagerly anticipate, rich and stable countries will happily link their power grids together in some grand international energy market, and maybe it will, as you surmise, solve all their problems. I really have no opinion whatsoever on that.
But where do the others fit?