We cannot blame all of this on the coach, let us also look at some of the players and the technical team around the coach, all of this influences the results you see on the pitch only that the coach is the figure head and that has been the most reason why he takes most if not all of the blame. The players amongst themselves should also see to playing for the team interest and not to pursue personal interest alone because that does affect the teams results cumulatively.
First thing that always come to fans mind when a club is playing weak, they will definitely blame the coach because is the head and he is the one that will coordinate the team to perform well even a player is not playing well, the coach as the right to substitute him and bring player that he believed he will perform more better in the pitch. Real Madrid performance was very poor since Ancelotti win the Champions League and bring Mbappe in the team, they started struggling to achieve wining in many competitions. Xabi Alonso just started coaching the club he as not reach one year of coming gradually he will no the problem of the team and resolve the issues. Let wait for new season as see how xabi Alonso will play is statics against madrid when new season starts.
Yes, Barcelona is very fortunate to have a great coach like Hansi Flick. As we all know, Hansi Flick arrived at Barcelona when the club was in a difficult situation, both financially and in terms of performance. But Hansi Flick continued to work wholeheartedly at Barcelona, even with players who were initially mediocre. However, after being coached by Hansi Flick, those players who initially seemed mediocre actually performed much better. The proof is that last season, Barcelona immediately won La Liga again and also won two other domestic trophies. Barcelona's achievements are certainly thanks to a great coach like Hansi Flick. In fact, Barcelona was so great the previous season that Real Madrid were consistently defeated by them in every match.
Hansi Flick as improve Barcelona performance as achieve great trophy and am sure that he is the best coach for Barcelona currently and he as many trophies to win next season because they are in a better condition currently. Which how real madrid are playing currently if new season start am believe that Barcelona will still have more opportunities to defeat Real Madrid in the league competition, expect xabi Alonso change is statistics and the players adapt in the tactics in the pitch. And he need to make it fast before the season start. And madrid still need defender because Rudiger is getting old and they have started performing weak in the pitch, they need to look for young players that have more experience then Rudiger in the pitch.