Students give mixed advice here, and you should treat any ranking with care. In one discussion, a student put IIT Dhanbad ahead of IIT Ropar, while others put Ropar first, saying it has better location and placements. A current Ropar student describes strong CSE faculty who push students out of their comfort zone, though a current student will naturally speak well of the campus.
A few useful points come up. Some students advise choosing the college with the better alumni network, because it protects you when the market goes through ups and downs, and note that nobody knows how AI will change the CSE job market. IIT Dhanbad is seen as an older institution with a bigger alumni base, while IIT Ropar is seen as one of the more successful newer IITs.
The best approach is to compare data:
If all of these are equal, take the one where you would be more comfortable for four years.
One of my friends was in a similar dilemma when he got both CSE at IIIT Delhi and CSE at IIT Patna.
Although he lived in Delhi, he did not choose IIIT Delhi and went for IIT Patna instead. There were a number of reasons why he chose Patna.
Ultimately, Delhi has a better location but that is outweighed by the IIT tag.