I could not find mechanical-specific feedback from students, so this comes from how they compare the two institutes generally.
For mechanical, the practical test is what you want after the degree. If research, a smaller class and a good city appeal, Gandhinagar fits. If you prefer a larger mechanical department, core and industry links and a bigger alumni base, look at Dhanbad, but check its location and campus life. Ask seniors from both about mechanical placements and internships.
There are many reasons why one must consider choosing IIT Gandhinagar over IIT Dhanbad. IT Dhanbad is only known for its mining and petroleum engineering so pursuing Mechanical Engineering from there isn’t a wide choice. Moreover, IIT Gandhinagar enjoys a location advantage in comparison to Dhanbad. Another added advantage is that IIT Gandhinagar lets you complete BTech in 3.5 years. Given below are some other reasons why choosing IIT Gandhinagar will be more beneficial
Why you could choose IIT Gandhinagar?
Overall, I would suggest you go for IIT Gandhinagar!