James Damore's ideas about gender rested on a foundation of discredited pseudo-science, yet he was successful in a cutting-edge industry.