Batman has beaten basically everyone he's ever met, including Superman and Captain America. He's extremely intelligent, extremely clever, and has a gadget for just about every situation.
If there's one person who can pull a win out of his ass, it's Batman.