Additionally, if you're faced with certain defeat, this means you've lost significant deterrence. If not, it would be more intelligent to exhibit your capabilities to negotiate a truce.
War is a power struggle.
I'll remove some conditions then.
In a war situation, Red will take out a Blue carrier regardless of Blue's nuclear deterrent because they are at war. The nuclear deterrent makes Red reluctant to get to the point of war. Once at war, Red will either surrender under the threat (and hence not be a threat), or call Blue's bluff.
Edit: Also, the position that "they wouldn't dare take out my carrier because of the atrocity I'd do to them in return" is not a sensible military strategy during war.
However, where I feel we disagree is that how Red does it is important as they don't want to allow Blue to gain allies or to give the possibility to Blue to react in a way that would otherwise been politically impossible (ie nuclear weapons).
But you are right, history shows that a "deterrent" of any nature, not just related to war, is often not considered leading up to whatever it is supposed to deter.
It would be good for the simulation to say that Blue should win without using nukes, and if using nukes, not damage the environment enough to make life hell for Blue and Blue's allies' populations.
Yeah! How dare they defend their own country! </sarcasm>
Failing those, someone might decide, heck with it, I want my place in the history books.