Submarines are basically as good as dead if an anti-sub helicopter is nearby. They can't really retaliate, an active sonar will most likely expose them and they are not fast enough to escape a torpedo.
> But claiming this magically makes aircraft carriers obsolete is largely internet fanboy noise.
All surface ships are useless in a symetric warfare. Just look at what Ukraine did to the Russian navy in the Black sea.
Ships are slow and exposed. Even if their defence allows them to survive a direct attack (dubious), they are necessarily prone to saturation attack.
Very useful when you need to bomb a poor country to make them remember that you are a liberal country in name only and their tribute is overdue however.