You are messing Shipwreck with Sunburn. Brahmos is a development. of the p270 Moskit ( Sunburn). The P700 Granit ( Shipwreck) ia unique beast on it's own.
Yes, I agree rail gun is pointless for antiship role when you have in hand mature cruise missile tech. It will be handy in defensive purpose , shooting down fast moving airborne incoming threats