Messi is comparable to Maradona, but goals have nothing to do with it. His international career has been a disappointment until 2021. Di Maria was, by a decent margin, Argentina's best attacking player in their run to the 2014 World Cup final. And they would probably have won it if they had him instead of any other player on that day(this may include Messi, who missed a sitter from Biglia's pass). So, yeah, he is not really on Maradona's level, despite his great World Cup in 2022 (one of the best, of course, but still not equal to Baggio's 94, Ronaldo's 02 for example).
Actually, if we are strictly speaking of international careers, I still wouldn't necessarily rank Messi above any of Cruyff, Platini, Zidane, Ronaldo, Van Basten, or Matthäus. But I might be wrong. One thing I'm sure of is that Pele and Maradona produced miracles (what Messi does at the club level) at multiple international tournaments, and that sets them apart from him, despite him having comparable talent and definitely a comparable career overall.