I'm not sure that's true in this case. China can't attack America because they'd be nuked into radioactive dust. But if they attacked Taiwan would the USA escalate to nukes? Especially given China is a nuclear power? I kind of doubt it. There's a limit to how much you stick your neck out for an ally.
Hot war with nukes is always an option, just ask Gandhi. Seriously, MAD doesn’t work unless people really are nuts enough to destroy the world for ideals and friendship.