For me it depends on the setting, but like... I've not finished good books because they had discrimination in them. Like someone else said, if I wanted to be a witness to discrimination, I'll just... go outside? IDK. I know it's important to show, but I love me some stories that show minorities as powerful without the Capital D asterisk.
I primarily write sci-fi, I tend to lean towards no discrimination, or at least discrimination that doesn't have a direct counterpart in our world (for example, in one story, these colonists on a different planet only grew beards if they came from a particular area, so if you grew a beard, you were considered dangerous/uneducated and my MC (of course) happened to hail from there and happened to grow a beard. There's definite parallels to discrimination in our world, but afaik there's no direct counterpart to wholesale disapproval of the ability to grow beards). Otherwise, I prefer to deal with a character's self-doubt than doubt instilled by other people.