I don't normally deal in dynamics, so thanks for the reminder. Didn't need it. Naval architects are the likely specialists for vessels once in motion (and the energy required for the tugs).
So yeah, an equally massive object can dislodge it if force is transmitted at the center of gravity of both.
But surely you would be pivoting around the centre of gravity of the ship, so the force necessary is only for frictional dislodgment both ends.
I think the interesting part that you mentioned by saying inertia, would be, how to stop the ship's rotating momentum once the friction is overcome each end. Some tricky vectors there.