The lesson that Tehran will take away from this conflict is that it needs an ironclad deterrent in the form of a nuclear weapon.