Is it really an anti-pattern when you're just writing code that depends on equality without understanding how equality works?
There's probably a lesson to be learned in here, but if I wrote an article every time I wrote bad code, I wouldn't have time to write any bad code ;)
Edit: This particular issue is pretty common, and it's good to draw attention to it, but let's just call it what it is - a common bug.