And the principal fact is that the price of a US Aircraft Carrier is utter annihilation.
Either with nukes, or other means, depending on what is necessary.
This is not a fighter jet or a tank. It's a Capital Ship.
Sovereign US territory.
However if the US for whatever reason attacked first, Iran under international law would have been justified to attack those capital ships. Yes it would have been terrible for everyone.