Thing is, most of these are from a time when TV writers knew how to write realistic, interesting characters who were believably human, not ciphers mouthing fashionable moral platitudes. That's why many of these shows were and are beloved. That's why the 90s up to around 2015 or so was a golden age for TV, just tons and tons of amazing dramas and comedies with messy, fascinating, beautifully drawn characters. Tony Soprano is a racist, sexist thug who relentlessly cheats on his wife and oh, yes, murders people. He's also one of the best characters ever committed to the small screen. You might not want to be his friend or even meet him, but you want to watch him and you care what happens to him.
People have flaws. They don't always say or think the "right" things. They don't all agree with each other or have the same aims and motivations. Good writers know this and use it to construct compelling stories.
There would be no Breaking Bad if Walter White was a lovely guy. That show is literally about a seemingly normal guy gradually giving in to complete amorality because he likes how it feels, so it's funny people are here saying "Oh, he was horrid!"
If Ross was the perfect man, there'd have been no story after he and Rachel got together. If Lorelai Gilmore was never a bit selfish or impulsive, and if her parents were more emotionally open and empathetic, she wouldn't have left and cut off contact and there would have been no story. That IS the story.