There aren't many players ever close to those two, if you measure talent, output and longevity. I'd say only Zidane in the last 25 years, and he never had the benefit of being able to get those kind of scoring numbers.
If you just take the last 25 years you had the likes of Baggio, Ronaldo, Romario, Ronaldinho, Figo, Henry, Pirlo, Buffon and all these other great names, but Messi and Ronaldo, no matter how or why people like or dislike them are a very small category.
Dybala, with the absolute best career he could have, will probably only get into that second list of players. But then so almost certainly will the current new generation of big talents, including Neymar, Pogba and the others.