If you had specified the parameters on which you are judging the institute, it would have been easier to answer the question. In terms of quality of education, the two IIITs are better than the three NITs.
Given below is a brief comparison of the institutes based on various parameters. You can make your decision based on that.
Faculty:(IIIT Delhi > Top NITs ~ IIIT Allahabad)
IIIT Delhi has the best faculty. Even top NITs don’t come close to IIIT Delhi in terms of faculty.
Campus Life: (Top 3 NITs > IIIT Allahabad > IIIT Delhi)
The top 3 NITs offer better campus life. As compared to NITs the workload of IIIT Delhi is too much. IIIT Delhi also does not have as many clubs and societies as top NITs. NIT campuses are also bigger in comparison.
Hostels: (Winning Institute - IIIT Delhi)
Placements: (IIIT Delhi ~ Top NITs ~ IIIT Allahabad)
In terms of placements, IIIT Delhi matches the placement statistics of top NITs. A student of IIIT Delhi has recently secured a placement package of 1.45 Crore. The average package of the institute mentioned in the question is around 15-17 lakhs (for CSE).
Location: (IIIT Delhi > Top 3 NITs ~ IIIT Allahabad)
But whether you will like the campus or not depends on your background. If you are from South India, life in Delhi or Prayagraj may not be that appealing and vice versa.
Reputation & Alumni Base: (Top 3 NITs > IIIT Delhi > IIIT Allahabad)
If you are genuinely interested in coding, you should choose IIIT Delhi or IIIT Allahabad. Otherwise don’t go for IIITs.