Generally, moviegoers and TV viewers are force fed a protagonist that they're supposed to root for no matter what, even if some of the things said protagonist does are objectively terrible. In fact, there are a ton of supposedly good characters who don't deserve a happy ending in movies or TV. While movies where the loveable idiot doesn't get the girl exist, there are far more shows and movies that end happily even when they shouldn't.
It's not always about love. Sometimes, the heroes of the stories commit crimes for which they aren't punished at all. Sometimes, they're jerks who inexplicably get to keep their friends and family regardless of their heartless behavior.
Here's a list of characters who don't deserve their happy endings.
Ross and Rachel have to end up together on Friends because they're Ross and Rachel. But despite Rachel's flaws, Ross probably doesn't deserve her. Ross is obnoxious, self-important, condescending, rude, jealous, and irritable. He takes the woe-is-me trope to a whole new level. His undesirable personality isn't the only reason that Ross doesn't deserve Rachel, though.
When the two drunkenly marry in Vegas, he refuses to divorce her for fear of how people might perceive a thrice-divorced man. That is an unspeakably selfish act which illuminates the wonting character of the man. That he would do something like that should disqualify him from ever finding love.
In Crazy, Stupid Love, Emily cheats on her longtime husband Cal with her coworker and the movie opens with her asking for a divorce. She has a mid-life crisis and that's tough but does she really deserve to get her husband back?
First of all, she somehow feels that she deserves to keep the house and kids in the separation, even though she's definitely the one who destroys the marriage. Besides that, cheating on your spouse when you have a family together is selfish. Plus, she toys with everyone's emotions by getting back together with Cal in the end.
Yes, it's an ending the audience wants but that doesn't necessarily mean that it's the ending Emily deserves.
Many How I Met Your Mother fans focus on Ted, his transgressions, and whether or not he deserves his happy ending. Well, his ending is more bittersweet than anything and Robin proves to be a somewhat selfish character throughout the show herself, so maybe they do deserve each other. Lily, however, does not deserve Marshall.
First, she calls off their engagement to pursue a hopeless art career in San Francisco. While this is selfish, it's understandable. She definitely should have included Marshall in the decision making process, though. It's a bad look but it doesn't make her irredeemable. But then her actions in marriage are equally selfish. She runs up credit card debt, forcing Marshall into a corporate law career that makes him miserable. Furthermore, they move to Italy for her career, once again thwarting Marshall's ambitions, this time to be a judge. Theirs is an astoundingly one-sided relationship.
Anyone who hires a private investigator to look into a woman they're "in love with" is seriously shady. That's precisely what Ted does in There's Something About Mary. Yes, Ted is painted as a kind, sweet, all-around good guy but what he's engaging in is nothing short of stalking, even if he's using an intermediary.
What's more, that intermediary, Pat, is a supremely shady character. Ted subjects the unwitting and undeserving Mary to him and it's awful. In the end, Ted gets the girl despite introducing chaos and maybe even mortal danger to her life.