look at it this way, the impact on the ship itself is equivalent to on the target. If it can create a 1200m crater, the ship will sink too.
The diameter of the rail gun shell is much less than 50 meter. The impact, proportion to the mass of the shell, scales as 10^3 of the diameter. Go figure.