Nuclear energy is a better analogy to AI than nuclear weapons. Nuclear energy is dual-use: it can be used either to power cities or destroy them. Nuclear weapons are fundamentally single-use: they can be used only to destroy cities.
AI is dual-use, not single-use. Offense and defense. The analogy doesn't hold.