I'm not arguing that they are similar in character. I'm saying considering Hook, Neal and their connections, it's not difficult to believe that one of them had to go, or at least the writers thought so.
Because he sacrificed himself to save the ones he loved.