As a person who has done a B.Tech in Electrical Engineering from an IIT, and then went on to pursue an M.Tech from another IIT and then got a job in Google as a Hardware Engineer (take note, not a software engineer), I can definitely say Computer Science Engineering has much more scope than Robotics and Automation.
In USA, you might get good jobs in the Robotics domain, but still you’re paid lesser than software engineers there (I realize CSE graduates do much more than just software engineering).
In India, the scope for robotics is even lesser since there are lesser companies and the few jobs that exist pay much lesser. You can check the average pay on websites like glassdoor or levels.fyi for more info.
However, I would like to point out, that if you’re in the top few percent of any field you’re working in, then you’ll earn a lot doesn’t matter which field you’re in.