I see your point but you didn't really tackle the problem at hand.
To detach the situation from current feelings, let's take a time trip back to hypothetical year ~1975.
Let's say it's illegal to register a NGO, company or anything that has a rule of "no sexual group X allowed". Now let's say that there is some guy who is absolutely brilliant at playing the violin, but has at some point allegedly done some homosexual approach to straight guy. Which any gay would have just brushed away, but now it was taken as harassment.
We have obviously created a situation where it's impossible for that violinist to take part in any orchestra. No "only gays & women orchesta" is allowed by law. Society completely wastes that human resource. Some male musicians somewhere possibly have slightly better work security. But the cost is that millions of people never hear the recordings of that great violinist.
You have to pick:
A. Allow organizations to be completely self selecting. This would have a set of short term problems and it's currently not kosher at all.
B. Allow alleged transgressors to somehow wipe their record clear. Seems practically impossible during internet age and click headlines.
C. Force people to be cool about people who have allegedly transgressed in some way in some other social setting. But now you lose productivity of whole teams, not just some individuals here and there.
D. Lose a lot of human resources. And probably for petty reasons. If allegation is enough, you can destroy too competitors easily. As shown by the red scare, Stalins purges, etc.
This was originally a case about a programmer allegedly groping some women. Seems like if you could start a company of "former sexual harassers inc", you could soon hire lots of splendid talent dirt cheap. Then you just need to somehow hide the origin of the products being made to the consumers. But soon even that won't matter much if there is anything to be learned from the music industry.