Torpedo boats didn't make battleships obsolete, this is a shockingly bad interpretation of history.
Jeune Ecole all over again. They were wrong about torpedo boats in the late 1800s and you're wrong about torpedo boats today. The battleship DIDN'T CHANGE in response to the torpedo boat and it certainly didn't go away; the torpedo boat destroyer was invented to provide better protection than the battleship's own small guns could provide and that was that. Torpedo bulges didn't even come into existence until later as torpedoes became more powerful.
Tanks were not designed to fight other tanks, and almost never have been. They were DESIGNED for infantry support; to be protected direct-fire artillery and machine gun bunkers moving across a machinegun-swept wasteland. They can't have been designed to fight other tanks because the
first tank, by
definition, didn't have an opposing tank to fight. The ultimate goal of an army is to take and hold ground and that means infantry (in most combat doctrines), which means all other weapons on the battlefield are by default some form of infantry support. However, the fact is that tanks fight other tanks whether you want to or not, because tanks are
protected firepower on the battlefield and that means you need a bigger gun than you need when killing infantry, and oh look at that you
have those bigger guns, they're mounted on your own tanks. Solution? Obvious. Design goal? Still supporting infantry against hardened targets, but sometimes those hardened targets are on tracks and can move instant of being made of concrete and fixed in position.
You are wrong about carriers as well, other nations use helicopter carriers because they can't afford to operate larger carriers and don't have the massive need for global power projection the US has. The US has the need, and the money, and so it uses carriers, which are more cost-effective than leasing land for airbases everywhere on the globe that the US may need aircraft.
At no point did torpedo boats ever get a chance to "thrash" larger ships. They have occasionally taken them down, but never have we seen a fleet of battleships be destroyed by torpedo boat. Including some Italian shenanigans against notably unescorted battleships or docked ships, rarely have torpedo boats scored the kill on a battleship (scuttling a surrendered or abandoned ship of course doesn't count).
I feel obligated to point out that despite the media frenzy of the time, the Dreadnought, while a superior battleship than the predreadnoughts, did not obsolete them. It pushed them to
obsolescence much faster than they otherwise would have gone, but predreadnoughts made up the majority of battleship fleets for years after Dreadnought was launched.
And the carrier had its time in the sun as the ultimate long-ranged ship-killing device (taking over from the battleship) before missiles arrived, and even today it retains that title because a plane can carry a missile quite a long ways before launching it, specifically it can carry it over a task force's radar horizon meaning that the carrier retains the longest-ranged awareness and strike capability of any warship. But smaller ones with just missiles and not planes are cheaper and can be in more places and so they have a place in naval doctrine as well.