Which country? Do you think Canada is sovereign? Do you think it will be able to defend itself if Trump gives the military an order to make them the 51st state by any means necessary?
Well, Afghanistan defended itself for a bit. As did Vietnam, as clear examples. Neither possess nuclear weapons.
Today countries as various as Brazil and Australia are independent, sovereign nations. Even Ukraine which was invaded by nuclear-armed Russia is still sovereign and fighting. Iran for that matter still has its sovereignty, they just lost some military assets.
Canada is sovereign because of its proximity and interconnection with US. If your economy is large enough, you can "nuke" your opponents by using mutually assured poverty.
But I largely agree, if you aren't a giant economy and you don't have nukes - then if the US or Russia accesses you of building nukes, you need to start building nukes ASAP.
TSMC is an economic nuke and not just by accident. The Taiwanese intentionally tried with several industries it heavily subsidized to find one where it could make itself so valuable that other countries (with nukes) would be compelled to protect it (potentially with nukes).