Why did it tie?

So, we had the same amount of pokemon the bench. He got 2 points because he defeated my EX but I got the missing point before him. Should I not win with those conditions?