Most can agree that in the spirit of the game both should have been reds. Both of them bust case because of the subjectivity written into the laws. I will highlight the subjective parts which lead to the refs officiating how they see fit.
SERIOUS FOUL PLAY
A tackle or challenge that endangers the safety of an opponent or uses excessive force or brutality must be sanctioned as serious foul play.
Any player who lunges at an opponent in challenging for the ball from the front, from the side or from behind using one or both legs, with excessive force or endangers the safety of an opponent is guilty of serious foul play.
VIOLENT CONDUCT
Violent conduct is when a player uses or attempts to use excessive force or brutality against an opponent when not challenging for the ball, or against a team-mate, team official, match official, spectator or any other person, regardless of whether contact is made.
In addition, a player who, when not challenging for the ball, deliberately strikes an opponent or any other person on the head or face with the hand or arm, is guilty of violent conduct unless the force used was negligible.
So by the laws of the game, both are are yellows if the refs decide they are, which they did.
So what’s the solution? Is football just an inherently subjective sport? How do you codify the spirit of the game?
Why rewrite them? They are clear. It is humans that make them subjective.