Joselu has made the decision to leave Real Madrid and join Al-Gharafa in the Qatari league, he knows he will not be the first choice at Real Madrid and moving to another club even though it is in a smaller league than Laliga could give him more games and opportunities get a bigger income, but I don't know for sure how much he will get at the new club.
Carlo Ancelotti reportedly wants to keep him because as a reserve striker, he can be said to play a very good role, appearing several times to make Real Madrid's as a winner. With his move, Real Madrid will look for another reserve striker who is of course cheap but can perform well.
https://twitter.com/FabrizioRomano/status/1805213101131796541Joselu really wanted to remain in Madrid but due to the pressure and arrival of players like Mbappe mean some players in Real Madrid may become invincible and not appear in most of their matches unless those that are strong in the first XI and as for Joselu he's seeing himself that he may not be valuable in the team anymore that's why he decided to move to the Qatar league because he will gain attention over there and get more money and at least he has achieved Champions league glory with Real Madrid and that is the most important thing. I wonder why some players choose to remain in a team where they will not have enough playing time why they can actually join other teams and have more playing time and also enhance their career and make good money so as for Joselu he made the right decision if you ask me.
Even if Carlo Ancelotti decides to keep him as a reserved player, time will come when he will rarely play matches so Madrid should instead look for another replacement.