But for commonly used goods that every person needs, every country would benefit from producing these on their own, thanks to various synergies.
Specialization has also transaction cost. If you're skilled it might be better to plumb some things yourself than call a professional and risk him being a hack.
So I don't think it's one system being better than other. Rather, specialization is like paralelism - there is a transaction cost due to nonlocality, but also better scaling. So, like with paralelism, the rule should be - try as much as you can to produce locally, and specialize only where the scale advantage becomes really strong (usually that happens with high-tech products that are needed in very low quantities - by centralizing production, knowhow is easier to apply and capital costs are easier to justify).
I understand international politics are completely different, but it is hard for me to understand how comparative advantage would not be useful at that level as well.