Except that is not true it is a myth peddled by those who do not study what navies were actually thinking and doing between the Word Wars. The American Two Ocean Navy Act for example specified 18 carriers to 7 battleships. The Committee for Imperial Defence (British) favoured the carrier but recommended new battleship construction as the effectiveness of carrier aviation and the circumstance under which it was effective were not fully understood and there were still situations in which carriers might find themselves vulnerable to surface warships if unsupported.
There were in fact numerous battleship versus battleship actions in the Atlantic such as Hood and Prince of Wales versus Bismarck and King George V versus Scharnhorst, the Pacific such as South Dakota and Washington versus Karishma and the Mediterranean.
Further but battleships were still retained for a while into the Cold War as high seas in the North Sea for example could curtail carrier operations and you wanted something along that could swat a Sverdlov if it loomed out of the mists...even blipped on radar display.
They used them offshore in the Vietnam conflict. Possibly in the Korean War too?