Kubrick is obviously a genious and Dr. Stangelove is obviously the better movie if we were handing out Academy Awards. If we're voting best movie of all time I would vote Dr. Strangelove over Beetlejuice but not for best comedy. Maybe that makes no sense but it does to me.
At least it makes sense to someone.
Dr. Strangelove is a movie that is similar to The Wedding Singer in the regards that it means much more to anyone who lived or grew up in a specific era. When my kids watch The Wedding Singer many of the references and jokes completely go over their heads because they didn't live in the 80s. I caught the tail end of the Cold War so many of the references in that movie mean more to my parents than they did to me.
Even with that, Dr. Strangelove is a funnier movie. I'm a big Michael Keaton fan, but I found Mr. Mom to be funnier than Beetlejuice.