I disagree I would look at overall performance of the teams.
In 2018 Real had 76 points, Barcelona 93.
In 2019 Real had 68, Barcelona 87.
These are the most recent years. Referees letting Ramos act like a cage fighter put stains on their CL wins anyway.
I know you didn't say anything about Livepool and City I just applied the same CL is more important than league logic to the last two most recent years. Imo overall performance is more important.