Good thing you saw it the way I'm seeing it, to me that's disrespectful and I can't say he should be too comfortable with his (Joselu) situation at Madrid, I don't to see him as pawn in that squad but that's how it looks like. Let's say he's there for the achievement because no club stands a chance of getting all Madrid have gotten and will get in the nearest future. I'm even scared of Rodrygo getting less time of play since Mbappe is now part of the team, Ancelotti's plan might change and it will affect Rodrygo too, but let's see what will happen next season.
Rodrygo's position is very insecure at Real Madrid and for the future of his career it is not good so now there are rumors that he will leave Real Madrid but apart from that Joselu is also quite an important player for Real Madrid even though Mbappe comes but Ancelotti also has to think about it about replacements when something happens to the main players and the decision to give Joselu a new contract I think is very correct.
Like I said before Rodrygo's position can be affected but since leaving the team is what has been on his mind then I feel is a better choice because one has to drop for Mbappe, between Vinicius Jr Bellingham and the man Rodrygo to create space for their new man Mbappe, they can't be having 4 of them and expect one of them to be happy to stay.
Rodrygo has been a starter and now might be the time for him to come from the bench or not to start at all just like Joselu, so it would be nice of him (Rodrygo) to leave because we never know what might happen after all the hand writing is written bold on the wall and as for Joselu staying or leave is a choice for him to make after the experience he had with the team last campaign.