Batman has defeated Superman on a couple of occasions. The most famous was in the Dark Knight Returns graphic novel. Bats had help, and did plan it by luring Superman into a trap where Green Arrow shot him. The other instances (Batman: Hush, DKR, and Sup/Bats vol. 1/ish. #3), Batman also had kryptonite and time to prepare. There have been a few instances where neither won, Batman escapes.
Fact of the matter is? Batman plays dirty. Superman doesn't.