That is not the rule though.
If the offensive player is passing the ball and it takes a deflection from a defensive player then the deflection doesn't matter and you still look at the initial pass.
But RM player didn't pass the ball here, it was a challenge, multiple people flying in and the final deflection came from Fabinho and went to Benzema. Clear goal.