Both.

I'd *like* to play a tabletop game that lets me escape, but with a game like D&D there's particular assumptions built into the core experience that mean I don't get to escape or step back from the problems that I and people like me deal with on a daily basis - so instead I generally, in tabletop RPGs, escape to a world where justice can be done.

To whit, I fill my worlds with bigots and colonialists and slavers not because I want to build a dark, realistic world, but because I want a target-rich environment for magic missile.