Start with your interest. If computer science is what you really want, CS at NIT Jaipur is a direct path, whereas electrical at Ropar or Mandi gives you the IIT tag and a broad branch, but not the CS curriculum. If you actually enjoy electrical subjects, either IIT is a reasonable pick, and you can build software skills through electives and projects.
Students comparing similar options say the branch matters a lot, and some argue that a strong CS seat at a good NIT is an easy decision because it gives you good placement prospects and further-study options. Others mention concerns about CS saturation, which they feel will affect students in non-circuital branches more, since earlier many people from every branch used to move into coding jobs and that route may get harder. This is speculation, but it is worth keeping in mind.
If you choose electrical, make sure you pick a department that has active labs and recent software or core placements, and be ready to put in extra effort. Compare the placement and internship reports for each, ask seniors how many EE students moved to software roles, and weigh the IIT brand against the strength of CS. Ropar is often described by its students as growing fast, while Mandi has a hill campus and is smaller. Choose the option you can see yourself excelling in.
IIT Mandi is a much better option than others. They offer effective classes along with commendable campus life and atmosphere. If you are intensely interested in the Electrical branch, then you can surely opt for it.
Otherwise, IIT Mandi has the advantage of a branch change policy that allows you to switch your branch to CSE after the completion of your first year in Electrical. This impressive policy made IIT Mandi stand out from other institutes.
IIT Ropar is also good enough for you, as they offer power-packed classes conducted by experienced and renowned scholars. Out of the three institutes, IIT Mandi would be an elite pick.