Inter managed to get a ruthless win against Frosinone, a team with a high relegation potential. We can say that this win will definitely benefit Udinese. Inter are already champions but they might have done Udinese a favor. Frosinone hadn't lost for 6 weeks and this week they suffered a heavy defeat against Inter. Considering that Frosinone will play Udinese in the last week, we can say that they have become very advantageous. I think Udinese will stay in the league.
In my opinion, the thing that doesn't make sense is that Inter are still eager to win with a big score and it's not their responsibility to score 5 goals against Frosinone. Maybe this is an ambition that is difficult for Inter to suppress considering that they have already won the Scudetto and only have a few games left to take a break from Serie A.
Apart from that, with two more matches remaining, Inter will be able to collect 98 points and if they had not lost to Sassuolo in the previous match, they should have been able to collect 101 points at the end of the season. What is clear is that Inter is currently still fully motivated to wipe out all the remaining matches with a win. Regarding Udinese, they were indeed quite helped by Frosinone's defeat and will certainly not waste the opportunity given by Inter.