Use the Yellow Wisp’s drill ability to hit Captain Jelly twice. You can find the Yellow Wisp from two specific cannons on the ship, the second one that shoots yellow orbs the first time around, and use homing attacks to reach the top cannon the second time you board the ship.