It's wrong to base your vote on gender.
Bob wants to vote for a senator and sees that a questionable man and an upstanding woman are on the ballot.
Bob wants to vote.
Bob votes for the woman because he knows her character.
Bob votes for the man because he hates the thought of a woman in office.
The woman wins and does her job very well.
The man wins and turns out to be terribly corrupt.