I would say the Atalanta team has already qualified for the Champions League. The team is now fifth in the table. Atalanta team is 5 points ahead of Roma. The Roma team is not in good form right now. They have lost points in their last three matches. Meanwhile, Atalanta are in very good form. So it is highly unlikely that Atalanta will lose the last two matches and Roma will win both matches.
I think Roma will be happy to qualify for the Europa League. Because Roma has very little chance of surviving in a competitive platform like the Champions League. So Roma will fight for the Europa League title next season as well. Moreover, the performance of the team is quite messy at the moment. It is very important to make the team more stable.
As for getting into the Champions League, this is in any case more profitable than being in the Europa League - there you will get more money than even if you go very far in the Europa League.
If Atalanta lose the next two matches and Roma wins the next two matches then Atalanta and Roma will be equal in points. However, even though the points are equal, the Roma team is behind in goal difference. So I don't think it will be possible for Roma to qualify for the Champions League. Atalanta will be able to keep the fifth place in the table.
Roma team has performed very badly in the last three matches. This is why the party has fallen behind. Especially after the defeat in the match against Atalanta, the Roma team has fallen further behind. If Roma could win against Atalanta, Roma would still have a chance of qualifying for the Champions League. And at the moment Atalanta and Roma would have been equal on points.