I don’t think Xabi Alonso has enough experience to be the head coach of Real Madrid. However, he is a player who is committed to the club. He was a player who loved Real Madrid very much and fought very well for Real Madrid in the past. Currently, he is a manager who experienced a magnificent championship with Bayer Leverkusen and is currently chasing the championship. Of course, his opportunities at Bayer Leverkusen are very limited and despite these limited opportunities, he has made him one of the most popular managers in Europe. I think that Real Madrid can provide better management and be successful with its unlimited opportunities, but we need to see this.
Regardless of the experience he has now I think if there is still a mutual interest between Madrid and Xabi then something like this could happen.
Last season there were a lot of rumors linking Xabi with several big clubs including Madrid and Bayern but Xabi has decided to stay because he still thinks he is still quite comfortable in Leverkusen for now.
But it does not rule out the possibility if in the end Xabi wants to try something new for now especially Madrid also now definitely needs a new coach because Perez sometimes never gives more opportunities to those who cannot give what is expected by him.
So I think when now the Champions League is released and it is also possible that La Liga is released which makes Ancelotti's position threatened from his position.