Friends by far by far by far.
HIMYM is the only series that over the course of it made me HATE the protagonist. Seriously half way through its run I think they should have renamed it "How Your Lame Ass Dad Named Ted Ruined the Life of Your Mother By Meeting Her."
Ted had almost no redeeming qualities, which is why by the end its Barney's show even though Barney is the caricature that was created to make Ted seem normal.
At least with Friends the worse character- Ross by far- has some redeeming characteristics, like when he said the wrong woman's name at his wedding. And at least Ross is only part of the puzzle, in the end Chandler is more the protagonist of the men. HIMYM is rigged from the state that Ted can't be sidelined, which hurts the entire show.
The rest of the non-Ted cast was amazing, I overall like some of HIMYM more than the best of Friends. The problem is the father that meets the mother.