I don't think this is comparable. Physical weapons can't be used as protection; you can only use them for counter attacks.
AI on the other hand side can be used for protection—because it's not a weapon per se.
AI on the other hand side can be used for protection—because it's not a weapon per se.
This makes economic sense: it's expensive to armor every vulnerability and cheap to exploit just one.
I don't see a reason that AI would be different from guns or missiles in this regard: offense (or the MAD threat of it) is the best defense.