I have wondered the same thing before so I did a quick calculation. I calculated the following situations:
Situation 1: attacker rolls with 1d20+A against passive defence of 10+B, attacker wins on a tie
Situation 2: attacker rolls with 1d20+A against active defence of 1d20+B, attacker wins...