I always thought that Atticus hated the Ewells way more than he disliked black people. Of course he was racist, but the Ewells were white trash and Mayella was totally slut-shamed. Don't get me wrong, I loved the book. It was problematic as hell, but it's of the time it was written.