I think Madrid is not aiming to catch up with Barcelona let alone worrying about being moved by Atletico Madrid because as long as they are in the top 4 they will already have a UCL ticket next season, so nothing has been contested by Atletico or Madrid so far they have only maintained their position in the Big 4 so not eliminated there.
Madrid is also improving their winning path to stay in the top 4, that's why they have to take advantage of the remaining matches at the end of this season to maintain their position, moreover, they have to divide their focus to prepare for the semi-final match in the UCL against Manchester City later, it can be seen that Madrid is not trying to shift Barcelona at the top of the standings and not interested in winning the league with a difference of 11 points from Barcelona is quite difficult to catch.
Currently Real Madrid is in second place in the standings, being in the Champions League zone is very safe for Real Madrid, which Ancelotti needs to worry about if Real Madrid cannot finish in second place. So far, Atletico Madrid also has the ambition to finish in second place until the end of the season. If Real Madrid is not consistent in the remaining matches, it is not impossible that Atletico Madrid will catch up to Real Madrid's points. I don't think Real Madrid will let Atletico Madrid take second place talking about the prestige of competing with teams from the same city.
Real Madrid also has a big match in the Champions League so their concentration will definitely be divided, finishing second in La Liga is prestige especially when they are competing with Atletico Madrid who are in third place. For Real Madrid, chasing Barcelona's position at the top of the standings is very impossible, because so far they are 11 points away.
Looks like Ancelotti has made plans ahead of three games in three different competitions, CDR and UCL are more important than La Liga, whatever happens Ancelotti will be more focused on facing Osasuna and Manchester City than Real Sociedad.
Even though the UCL is more important than La Liga, I'm sure Ancelotti will definitely play more openly because they also don't want Atletico Madrid to chase their points. While the position in La Liga Real Madrid's opportunity to catch Barcelona has closed and I agree that Real Madrid will be much more focused on facing Osasuna and Manchester City.
Real Madrid might lose at Anoeta if Real Sociedad keep up their impressive form.
The home team's chances seem better to win the game considering they are still trying to secure the Champions League zone position from Villareal pressure. I'm not really sure about Sociedad's chances, but I don't know why I should doubt it given that Madrid don't have a major focus on La Liga.
Meanwhile, Barcelona has match that might be said to be relatively easier when they host Osasuna at Camp Nou. Barcelona are hoping for a win to seal the title this season quicker, and the returns of Dembele, Pedri and De Jong have made them even stronger than their opponents.
There is a reason why Real Sociedad must win this game, because they don't want Villarreal to chase their position in fourth place and automatically Alguacil will definitely pay special attention in this game. If Real Sociedad loses then their points will be closer to Villareal and potentially in the remaining matches they will finish fifth, so victory or a draw is what Real Sociedad is hoping for in this match.
While Real Madrid is also ambitious to maintain second place in the standings, so that they are not chased by Atletico Madrid, victory is one that is expected and I also don't see Real Madrid not getting full points in this match. So let's see how the competition between the second, third and fourth positions will be more competitive in the future.