It's possible to take 0 damage if you roll equal to your opponent's DL. Players always have to roll higher than the opponent's DL (adding the appropriate ability score), so if you roll under the opponent's DL, you take the damage (the difference of the roll + stat - DL). In the example you gave me, your character would receive 5 damage.