Here is a short checklist to settle this:
If the answers favour ECE, take it. If the materials programme excites you and you are fine with a narrower path, IIT Delhi is a strong option.
Both are good institutes, so the choice comes down to what kind of career you want.
If you want flexibility and a wide job market, ECE at IIT Roorkee is the safer pick. If you love materials and are open to research or higher studies, the IIT Delhi programme is a good place for it, and its Delhi location helps with visiting recruiters and faculty.
Think about your plan for higher studies. Materials Science at IIT Delhi suits students who want to pursue research, an MS or a PhD in a materials-related field, because the subject has real depth in areas such as nanomaterials. A degree from an IIT Delhi department opens research opportunities that are harder to find elsewhere.
ECE at IIT Roorkee suits both paths. You can go for a master's in VLSI, communications or embedded systems, or you can move into software with a coding portfolio.
If you cannot say what you want to research, ECE is the lower-risk option. If you are curious about materials and ready to commit, IIT Delhi is a solid choice. Students in similar situations often suggest also looking at branches such as engineering physics or applied sciences, which sit between the two worlds.
I would start by asking whether you can see yourself in a materials lab or in front of circuits and code. ECE at IIT Roorkee teaches communication systems, embedded design, VLSI and signal processing, so you can aim for electronics, telecom or software jobs after graduation.
Materials Science at IIT Delhi leads to a more specialised path. Its upside is a growing future in areas like nanomaterials, as some students and mentors note. Its downside is that the number of directly related jobs is smaller, so you may end up depending on higher studies or non-core recruiters.
If you have no strong pull towards materials, ECE at Roorkee gives you more options. If you do, IIT Delhi's brand and its position in a major metro make it an attractive place to study, and the department will connect you with research opportunities.
Do not choose only by institute name. Students who have compared these types of options say the branch you study shapes the first few years of your career more than most people expect. At IIT Roorkee, ECE gives you exposure to digital design, communication theory and embedded work, along with enough software to compete for general roles.
Materials Science at IIT Delhi gives you a specialised education that is useful if you want to work in materials, manufacturing or research, but has fewer direct job openings.
A good test is to look at the course lists of both departments, find a few seniors on LinkedIn and ask what their first jobs were. If most of them went into roles you would be happy to do, that branch is probably right for you. If not, ECE at Roorkee is the more reliable choice.
IIT Roorkee, Roorkee