Correct my logic please:

If a person were to say to himself: "I will not vote for that candidate because of his color". Wouldn't we call that racist?
But what is the difference if a person says; "I will vote for that candidate because of his color". Shouldn't that be called racist as well?

Same questions regarding voting for or not for someone because of his/her sex. Shouldn't that scenario be considered sexist?

Yet, for some reason everyone assumes that most blacks will vote for Obama regardless of his qualifications or positions. Also, most assume women will vote for Hillary regardless. Based on my reasoning, above, shouldn't those voters be called racist and sexist? If so, why aren't they?

Thanks,
Wayne