Society has interests that conflict with your personal desires. If you believe men are better coders than women, society already prevents you from acting on your ideas. I don't see how this is significantly different, especially given how much "protected" classes clearly affect your odds of getting in to prestigious institutions.