Are you referring to WW2 cruisers and Zumwalts?
The 5" naval guns cannot meet NGFS requirements, which was more or less the excuse for keeping the BBs in service. To be fair smaller faster firings guns have been favored over larger slower firing guns for that mission, and precision makes...