He doesn’t. He gets used by the cool girl to get her guy back, and does a splendid job as a filler of time when he is needed for such tasks. The arsehole, however, gets whatever he wants without ever creating anything worthwhile, or giving a hand to anybody who could have done with one. That arsehole gets the girl, though.
Still, I know which one I would rather be.
Definitely the nice guy.