Both are well-regarded newer IITs, so the better choice for electrical engineering depends on what you value.
One general point from students: the syllabus for the same branch is broadly similar across IITs, so what separates them is faculty, labs, clubs and placements. Compare the electrical departments directly. Check recent core and non-core placements, research labs, and what branch-change or minor options exist. Look at the opening and closing rank trends for your category as well, then talk to seniors on both campuses before choosing.
Both the institutes are well-regarded in the field of technical education but if I had to choose one, I would have gone for IIT Indore without any second thoughts. Here’s why
All these points are more than enough to convince you to choose IIT Indore over IIT Ropar.