I'm not saying there wasn't a luck factor, but remaining in contention for those spots was not down to luck. Some final details had a significant luck factor involved (ie Crotone keeping Lazio winless so that we had our chance to beat them) but I could equally say that we were unlucky during both seasons:
1) Referee screwed us in like 3 Juventus games out of 4.
2) We had a clear Icardi goal disallowed in the Milan derby that ended 0-0.
3) We lost points due to refs vs Parma, Sassuolo and other small teams.
There's much more details that went the wrong way and results that changed due to external factors. Just because game 37 and 38 went our way (despite a home Sassuolo loss in 2018 and an away Napoli loss in 2019) doesn't mean "we were lucky to reach Champions League".
If anything, if we had the luck y'all claiming we had, we'd be nearer the 2nd spot than barely grabbing that 4th spot.