IANAL, but an NDA I think is a civil contract. Civil contracts are not valid to sign away your rights or enable otherwise criminal/misdemeanor behavior.
Right, but giving someone advice based on a sexist view isn't a crime, so someone who signed this NDA and then got sexist advice wouldn't have any legal grounds to break the NDA.