Why not a rail gun?
With the power required to fire one, each gun would need it’s own power generating station. Not exactly feasible.