That's not the problem. Most people are subconsciously racist to some extent. They make a conscious effort to not be racist. When you let go of these conscious inhibitions, you can blurt out stuff that you'd be appalled to hear from anyone, let alone yourself. Does that mean that the person is not racist if they're only racist when under the influence of alcohol? No, because subconscious racism can and does affect other decisions one may make in life and it requires a sober and self-reflecting mind to combat it.
This obviously happens more when you're exposed to racism, which is unavoidable given the breadth of racism that exists in popular media.
Never a fan of 'everyone is racist' because it's kind of...well wrong.
SURE, people have subconscious biases. White supremacy beats stereotypes into us out of the gate, takes ALOT of deprogramming even as a POC trying to get rid of self-hate!
But there's a difference between having a bias and being racist.
Like I dunno if someone who might not want to go to a primarily black part of town because they heard it is 'sketchy' is always the same person as 'You dated a N------!?!? YOU SLUT!!' after a few drinks.