Discrimination will always be present, and sometimes there is good reason for it. When I worked for a domestic violence shelter, I worked with a lot of women that many would classify as man-haters. I, myself, am not, but at the same time, I understand why so many of my coworkers were. They had seen terrible atrocities caused by men; the most extreme cases of abuse against women and children. There are people who don't want to believe the problem exists, or they want to think that domestic violence happens to men as much as it does women, but the hard data from the FBI shows that 95% of victims of abuse are women. Therefore, regardless of the wrongfulness of the discrimination, there is an underlying reason for it.
Recently, I have noticed certain gay males in the fandom use extremely sexist language and hate-filled speech against women. I take great offense at this, since I am a woman and someone who has been an advocate for the LGBTQ community. It seems that for some, sexual preference has become less about love than hate, and that saddens me. It saddens me most because the victims of such hate and discrimination should know better. But it seems to be part of our humanity to be driven to extremes. That being said, when someone has been the victim of discrimination, often they will become perpetrators of a different flavor of discrimination.
A healthy level of generalization is good. If we viewed each and every person and each and every thing as truly unique, we would go insane. For example, I am a woman, a Democrat, an environmentalist, bisexual, artistic, and white. If someone assumed certain things about me based on any of that, there are certain things they would be absolutely right about, yet some other things they might likely get wrong. Just because I am a woman doesn't mean I want to have children, though many women do. Because I am a Democrat doesn't mean that I agree with all government entitlement programs. I do not. And because I am white doesn't mean that I exert privilege.
There is some institutional discrimination that is absolutely necessary. If you run a trucking company, you simply cannot hire someone who has a visual impairment that would prevent them from being a safe driver. If you operate a restaurant where the clientele expects to see sexy women serve them over-priced diluted cocktails and chicken wings, you should have the right to refuse a wait staff position to a man. After all, being a sexy woman would be a job qualification for such work. I can completely understand such discrimination.
So yeah, there will always be discrimination. We just need to learn how to choose our battles.