Scrubs easily has the best 8 seasons in television history....
unfortunately, they tried to pull more from the bark, and it went full cringe.
For me its Frasier, while some might say Friends, and rightly so, Frasier was about a cac who was so self involved, that he failed to see the greatness in front of him. A father who loves both his kids, a brother who not only followed the same career path, but looks up to him, and a loyal friend in Roz who he perpetually ignores, only to realize she was down with the Tossed Salad and Scrambled eggs squad since day 1.
Frasier's twist ending was nice as well, it wasn't about getting what he wanted, but merely shown a door he had to open...again, hopefully this time, he'd be brave enough to walk through it.
A runner up being Star Trek TNG, Picard finally realizing how important his personal relationships where with the crew, was poignant, and ultimately gave him the greatest last adventure ever.