In terms of the match, I am not too satisfied with Madrid's performance, you can count how many chances Mbappe failed to score. Imagine if every chance was a goal then Mbappe scored a hattrick. Getafe played defensively in the first half because there was no choice at all. While in the second half Getafe tried to get out 2x hitting the crossbar so that their defense line had many open gaps but Madrid could not take advantage of the opportunities.
Kylian Mbappe's poor finishing this season is the reason why Real Madrid does not have high goal productivity. You are of course right that Mbappe had many opportunities in this match, but not only in that match, but in all matches Mbappe had many wasted opportunities. He has to be calm and stay away from pressure, so he needs to do it as well as possible so as not to become a player who will be ridiculed by his own fans.
I don't know the reason behind Kylian Mbappe struggles in front of goals this season. At Paris Saint Germaine, Kylian Mbappe prolificity was out of this world but since he joined Real Madrid in the summer, the France national team captain have been trying to find his best scoring form again. He did score today but had more chances of scoring more but he wasted the scoring opportunities.
Kylian Mbappe I think is playing under pressure which is why he struggles to keep calm in front of goal but can do better if he stops allowing pressure from fans get to him.