The differences between both in space are basically the same as on land:
- Coil guns are harder to build. Railguns are easy.
- Coil guns get more kinetic energy into the projectile than railguns for same power and barrel length.
- A salvo from either will overload any shield on a space ship and then penetrate the hull.