The answer is blocking. This can be known as mental block. The blocking effect is the relationship between two spurs, a conditioned stimulus (CS) and an
unconditioned stimulus (US) is diminished if, for the period of the
conditioning process, the CS is obtainable together with a second CS that has previously
been related with the unconditioned stimulus.
But one thing to keep in mind when a women is pulled over buy a male police officer they have to call for a women police officer to search her, it is against the law for a male cop to search a female