No, the USA would not survive a global war versus every other power. The US has enough missile subs, secret launch bases, and distributed silos to make it impossible to do a joint strike to eliminate the entire American nuclear arsenal. But very few would survive that war - most of the planet would be an irradiated uninhabitable wasteland. I would expect you would have survivors of a global nuclear war, but it would not be a pleasant world to live in.
There is no situation where you could do a ground invasion and takeover of any sufficiently nuclear armed first world country where that country would not use nukes as a final measure. That is what they are for. I mean go ahead, try taking over Pakistan and see if they don't nuke you for it, for example.
Like Ukraine's nuclear weapons protected it from Russia ?
Here is a clue. As the world situation changed, Ukraine lost its nuclear weapons. Want to bet that will NEVER happen to the USA or the successor of the USA ?
Don't think for a second this country would tolerate anything less than nuclear retaliation to a ground invasion of the mainland USA by a foreign government. Hell, an organized terrorist group would see themselves nuked out of existence if they tried to do a land invasion. It is instant suicide to attack America directly. Why do you think the entire point of the Taliban during the 80s against Russia, and of all the myriad terrorist groups operating against the USA today, was to lead a band of nomads to commit suicide raids and guerrilla attacks against them? They knew they could never "win" a war. They could just make their enemy lose. They worked to help bleed the USSR dry, and are winning by all their own metrics to this day by doing the same to the USA. They hide in caves while we flush a trillion a year down the toilet in the name of security against them. And people wonder how Rome fell.