The answer to this question depends mainly on your interest. Mechanical and CSE are diverse branches with diverse scopes. You need to analyze your own inclination only then can you make a sound decision. If you aren’t sure if the branch you can decide based on your future goals.
Lastly, I will advise you to opt for Mechanical only in first and second-generation IITs. So you can opt for NIT Surathkal or Trichy over third-generation IITs but not over first and second-generation IITs. Hope this clears my point.