Sure it does, they have unique distinguishing features; they only look identical if you don't look too hard. Computers are good at seeing all the details.
No, it doesn't, I have no idea what wizardry is involved. All I'm saying is that if you assume some magic that can distinguish Bob from Steve, then those same techniques, whatever they are, can be used to distinguish Bob from his twin Todd.