No Exit
The twist seems to be taken from Jean-Paul Satre's play "No Exit," where three characters expect Hell to be hot pitchforks and torture, but instead it's a small hotel room the three characters live in. It's the source of the quote: "Hell is other people."
In "No Exit," Hell has matched the personalities of the three to exacerbate their insecurities and flaws, where their existence in the room serves to torment each other, and Hell at times even opens the door to the room, but none of the three choose to leave because of their own flaws. They keep themselves in Hell and instigate their own torture.
The major difference between "No Exit" and "The Good Place" is that the characters in "The Good Place" are capable of growth and becoming better. Eleanor was capable of figuratively walking out the door of Hell, in that she recognized it for what it was and chooses not to play the game. Also, while the four characters were placed together to exacerbate their insecurities, they also have shown the ability to make each other better.