The decision depends on how you want to earn a living.
One consideration is cost. If money is not a concern, BITS Pilani gives you the flexibility to add minors and explore other fields, and a mentor says that whichever college you attend, you will need to prepare in coding, AI, ML and data science, because that is where most campus placements are concentrated. If affordability matters, IIT Kanpur's government fee structure is a plus, and you can also take a minor there to build a second skill.
My advice is to be honest about your interest. If you are drawn to coding and want a technology career, take BITS Pilani CS. If you like chemistry, process engineering or research, or you plan a master's abroad or an MBA, IIT Kanpur chemical is a solid choice. Compare the latest placement reports for both branches, calculate the four-year cost, and talk to seniors in each department before you decide.
The answer depends on whether you want to work in software or in a core chemical career. Computer science at BITS Pilani gives you the more direct and higher-probability path to software engineering, product and startup roles. Chemical engineering at IIT Kanpur is stronger if you want process industries, energy, pharma or serious research in the field, and you get the IIT name and a strong academic environment.
A student who answered a related question pointed out that wherever you go, you need to prepare for coding, AI, machine learning and data science, because campus placements tend to be strongest in these areas. That applies to chemical engineers as well, so a core branch at an IIT does not rule out software roles, but it does mean extra effort. Another noted that BITS offers the option of a minor in another branch, and that IIT Kanpur does too, so flexibility exists at both.
Cost also matters, since BITS is a private institute with a considerably higher fee, and you should compare that with the scholarship and loan options you have. If you are sure you want to code and the fee is manageable, BITS CS is a logical pick. If you are happy to study chemical engineering and also pick up coding on the side, IIT Kanpur gives you the stronger institute and keeps your options open.
According to my knowledge, IIT Kanpur Chemical Engineering will give you a better perspective even in your noncore fields. So if you get a chance in IIT K then just go for it, it's one of the finest IITs in India, and the experience you will get there is incomparable.
Both Chemical Engineering and CS have a great scope with CS salaries a bit on the higher side. But non-CS profiles make it easily into B schools and the IIT tag will help you get into MS programs easily. It will also become easier to pursue Ph.D./ MBA from foreign universities.
Take Chemical Engineering if
Take CS BITS Pilani if
Trust me when I say that both choices will shape your career effectively and you will be able to earn well either way.