Command of a ship is something that is explicitly defined and assigned; it does not default to whoever is the highest ranking person on the ship. So the answer is: whichever of the two (probably the Captain) is assigned as the Commanding Officer (CO) of that ship.
Latest Answers