Here’s the problem for battleships: they usually lose against an airplane attack. Carriers have their own planes and can repulse planes far away from the carrier.
I know there are some Admirals that wished they had the ballistic firepower of a battleship without the overhead. There is something to being able to rain big pieces of explosive lead on a target for an hour or two. Way cheaper than missiles at $1M a toss.
‘Rods from on high’ seems like a neat option - tungsten rods let go from a satellite that cause pretty spectacular kinetic damage on impact. Problem is reloading your satellite when it runs out of rods.
A battleship without the overhead would be a nice thing to have in the arsenal. I’ve seen the rail guns. They are very beguiling until you run out of power. Just don’t run out of power.