This is addressed really interestingly in The Good Place. It starts off looking like a very by-the-book sitcom though, so you do need to wait it out a bit.
It’s a philosophy class masquerading as a sitcom. I liked the show a lot. And props to them for ending the show when it needed to. They could have dragged it out but didn’t.