I think there's a distinction which needs to be acknowledged here. Skirt-chasing is something which is appropriate in some situations, but not others, while being racist is wrong in all situations.
If someone grew up in a racist environment, the goal is for them to stop thinking that way, period.
If someone grew up in an environment where they mistakenly believed it was always appropriate to verbally acknowledge your sexual attraction to someone, the goal is simply for them to get better at recognizing situations in which they need to self-censor.
There is no shame in being sexually attracted to women, but verbally acknowledging it is inappropriate in some situations.
If someone grew up in a racist environment, the goal is for them to stop thinking that way, period.
If someone grew up in an environment where they mistakenly believed it was always appropriate to verbally acknowledge your sexual attraction to someone, the goal is simply for them to get better at recognizing situations in which they need to self-censor.
There is no shame in being sexually attracted to women, but verbally acknowledging it is inappropriate in some situations.