Until a swordfish torpedo plane took out the rudder, the Bismarck was the most feared Battleship of WWII, and hardly obsolete.
We didn't sink the Bismarck,
No matter what they say,
For when we saw the German ship,
We sailed the other way.
--Homer & Jethro
The Bismarck was obsolete. It could not operate effectively on the high seas because of allied air power and a bomber took out the Bismark’s rudder and English battleships took out the wounded ship a few days later.
Surface ships and tanks are obsolete and when the next shooting war starts between America and a near peer competitor the carriers will not last long.