I have played bigoted characters before. It was in an acknowledged way that recognized that bigotry OOC, though, written into part of his concept. I wanted him to be able to work towards development on-camera and eventually change over time, and in some ways he grew; in other ways I'm not sure it ever got addressed in part because the game in question ended but it was an important part of his arc.
I think that one of the most important things about playing any kind of asshole who has the capacity to be hurtful to other characters is to double down on being nice OOC while you're doing it. If you can't do this, you shouldn't be playing an asshole in my opinion.
That said, if you're going to give people a lot of IC shit for things your character is bigoted about -- race, sexuality, whatever -- you absolutely should not be flinging it at them in metaposes. It must be respondable. There should be a very clear IC/OOC divide about where the stuff begins and ends. And if someone really is OOC uncomfortable with it, keep it out of their face.
I have no need to force someone who deals with this shit OOC on a day to day basis to deal with it in a game if they aren't up for it. It's all about being sensitive to the collaborative nature of what we're playing here.