You are unlikely to regret it if you genuinely want to do computer science, and the most useful advice students give is to stop second-guessing a decision you have already made. One senior points out that choice filling is harder than clearing the exam itself and that, unlike an exam question, choice filling is neither correct nor incorrect. You make it right by what you do afterwards, so put your energy into projects, internships and learning.
Branch is the other factor to weigh. Students at top IITs say that the difference between circuital and non-circuital branches matters much more than the gap between the institutes themselves, and that gaps within the top few institutes are small. Electrical at Kanpur is also a circuital branch, so it keeps software and core options open, but CSE keeps you closest to software roles. A student who chose electrical at a newer IIT over a core branch at a top IIT called it one of his best decisions, which supports the same idea.
If your interest is in software, CSE at IIT Gandhinagar is a reasonable choice, and its strengths are a research culture, a strong campus and good opportunities for higher studies. The thing to expect is that non-core placements there are less established than at some other IITs, so build your own profile. If you are not sure, talk to seniors in both programmes, but do not let the brand name decide it alone.
Once you have filled the choice and made your decision, the most useful thing is to stop treating it as right or wrong. Counsellors say that choice filling is harder than clearing the exam, and that unlike an exam question, a college choice is not correct or incorrect. You make it right by what you do next. If your interest is in computer science, then taking CSE is a sensible decision, not a mistake.
Students do point out that circuital branches like electrical keep more options open, and that Kanpur electrical is a strong combination of brand and branch. But it only helps you if you want what that branch offers. If your heart is in software, you could end up spending four years on subjects you enjoy less and then trying to catch up on coding anyway. Students who picked a circuital branch at a newer IIT or a top NIT over a bigger name often say, years later, that they are glad they chose the branch they wanted.
So you are unlikely to regret CSE at IIT Gandhinagar if you are clear about your goal and use the four years well:
Only revisit the decision if you find you actually prefer electrical topics, and in that case, speak to current students in both branches before you lock in your seat.
No, as choosing IIT Gandhinagar CSE over electrical in IIT Kanpur is a good choice.
My answer is based on the assumption that you are specifically inclined toward CS. One has to be very careful while filling your branch choices because it will shape your career.
But it’s very necessary to be confident with the choice you have made. Assure yourself that no matter which field you will go to, you will excel at it. Doubting yourself will only hinder your growth. No choice is right or wrong, it all is a matter of preference. One choice might be right for someone while the same choice might be wrong for you. Whether or not you will regret choosing IIT Gandhinagar CSE over IIT Kanpur Electrical depends on your personal interest so make sure you have analyzed that part well.