Both IIT Gandhinagar and IIT Ropar belong to the same newer generation of IITs, so any comparison is nuanced, and the best choice often comes down to how each fits you.
Rankings and priority lists you will see online differ from one another, and some are generic, so I wouldn't treat any single list as final. Compare the CSE placement reports and internship results of the past two years for both, since that data is public. Look at the faculty research areas that interest you, the hostel and campus conditions, the location and your comfort with the climate. If you are still undecided, think about whether you prefer a flexible, project-driven curriculum or a more traditional, structured one, and talk to current CSE students at both before you fill your choices.
When it comes to IITs it’s not really easy to compare them especially when these both are of the same generation.
However, if you still need to compare it is important for you to understand that an undergraduate degree is more of an exploration to discover your passion and interest. This hypothesis has been vetted by a large number of IIT graduates, IIM graduates, and many professors and IIT alums.
Let’s take a few examples for a case in point.
Flexibility:
So now that you understand the importance of flexibility and passion, IIT Gandhinagar stands out here undoubtedly. The curriculum at IIT Gandhinagar is very flexible and it allows you to study anything under the sun. This flexibility is the reason behind the success of Many IIT Gandhinagar graduates.
Apart from that, IIT Gandhinagar has the most funds among the second generation IITs. It offers around 30–40% of the batch with options to pursue foreign internships and great research opportunities.
Location:
If you compare IIT Ropar with IIT Gandhinagar, the latter takes the trophy again because it is situated in Gandhinagar which is the capital of Gujarat. The campus sits in the vicinity of CM residence, Vidhan Sabha, ambitious GIFT City project, prominent institutes such as DAIICT, NIFT, and many others.
Placement:
Placements at IIT Gandhinagar is excellent. The first CSE batch graduated in 2020. Without CSE only, firms such as Nutanix, Goldman Sachs, ITC, Barclays, etc. have been recruiting at the campus.
Alumni:
IIT Gandhinagar has to date graduated about 600+ students from BTech and at least 80–90% of them are quite successful. You can see alums are working in firms such as Mckinsey, Microsoft in the US, Amazon, Apple, BCG, ATK, Google, Facebook, Goldman Sachs, ITC, PnG, to name a few. You can also visit the alumni portal to get an idea about it or just visit LinkedIn.
For these factors, CSE at IIT Gandhinagar is a better alternative.