FWIW It's Always Sunny is, I believe, considered the longest running live action sitcom. Longest running sitcom overall is The Simpsons.
The Simpsons is most definitely a sitcom, just one that happens to be animated.
If you opened a textbook on mass media, it might have a definition of sitcom that is more culturally relevant.
A square is also a rectangle.
I guess soap operas don't count?
I'm not sure it's our job to keep adding qualifiers to the OP's bold statement that "Simpsons is not considered a sitcom, but it is the longest running show, period." until it's finally accurate.
In any case... PBS' Nova is 47 years old. Frontline is 37. I believe those are aired in prime time. And they are "not considered a sitcom" either.