Well no, the last defender would also get sent off if denying a goalscoring opportunity as well.
Outfield players don't get booked for every challenge, they never have they never will, refs use their discretion and you often see them warn players a few times. Not me who makes the rules or applies them so it's got nothing to do with arguing in favour of one or the other.