Wasn’t the point that process does not matter if we can’t distinguish the end results?
In that regard, it's a bit of a false analogy, because submarines were never meant to mimic human swimming. But AI development often has that motivation. We could just say we're developing powerful intelligence amplification tools for use by humans, but for whatever reason, everyone prefers the scifi version. Augumented Intelligence is the forgotten meaning of AI.
Submarines never replaced human swimming (we're not whales), they enabled human movement under water in a way that wasn't possible before.