Students these days focus more on placements than general potential development. They rank branches on the basis of the placement opportunities they render. But this viewpoint is totally unfair.
Recent years have seen a drastic change in interest from Mechanical Engineering to CSE. People prefer sitting in front of the computer for the rest of their lives just to earn better than Mechanical Engineers.
My advice in this regard is that you should go for Mechanical Engineering at the top 3 NITs over CSE at NIT Jalandhar. Else choose CSE only if you are crazy about coding.