Both these colleges have their own pros and cons.
Here are some important points for you to consider-
Based on these points, I would suggest you choose IIT Tirupati over IIT Dharwad. But you should first consult some seniors from the Mechanical department of both these colleges to know about the academics and faculty at each.