I don’t think they ever will be completely obsolete, the paradigm will probably just shift away from big formations of big boats with big guns to smaller more maneuverable boats in smaller groups more specialized on long distance strike capabilities using drones and missiles.
When the west goes on a diplomatic trip: Our wholesome president went on a peace mission to make fair and responsible deals for the greater good ☺️
When a country the west doesn’t like goes on a diplomatic trip: Evil dictator traveled to advance his evil scheme, he probably explained his plan to his butler in his office while looking out the window on a rainy day before laughing maniacally as thunder struck outside 👿