There is no universal winner. Earnings depend on field, role, company and years of experience far more than on the name of the degree. Students point out that an IIT software engineer's pay can range from a modest entry salary to very high numbers, depending on skills and how much the market wants them.
In general, IIT graduates tend to start well in tech and engineering roles, while IIM Ahmedabad graduates typically earn more in early-career management, consulting and finance, and may pull ahead in mid-career as they move into leadership or investment roles. The two are not exclusive either. Many people do a B.Tech and then an MBA, and one student described the combination as a very strong one.
So the useful question is which career you want. If you love building and want engineering or tech leadership, a B.Tech from IIT Delhi is a complete route. If you want general management or consulting, a B.Tech followed by an MBA combines both. Remember that the MBA fee is high, so compare outcomes net of cost and the time spent.
Comparing the average CTC of IIT Delhi and IIM Ahmedabad we get:
Average CTC of IIT Delhi: INR 16 LPA
Average CTC of IIM Ahmedabad: INR 26 LPA
One gets into IIM Ahmedabad after gaining 2.5 years of work experience. Adding the 2 year PGP Program, he is likely to start earning after 4.5 years. Around this time, candidates of both IIM Ahmedabad and IIT Delhi will be earning almost the same amount.
The only advantage an IIM Ahmedabad student will have is its tag which will add value in the long run.