As far as the choice of the Institute is concerned, I will recommend you go for IIT Delhi instead of IIT Kanpur. Here are a few reasons that support my recommendation
Coming to the choice of the branch, it might be difficult for some to identify their area of interest as of now. However, I can give you a slight info into both of the most preferred branches viz CS and Electrical.
CS: It comprises abstract math and algorithms. It involves step-wise problem-solving concepts wherein you get an answer after following a clear pattern. If this is your forte, then CS is for you.
Electrical: If you like playing with circuits and have an interest in dealing with graphs and their analysis, EE is for you.
As a side interest, you can always opt for open electives after the 2nd year that allows you to pursue more than one branch at a time. Truth be told, the packages offered to CS students are bigger than those offered to EE students.