Both choices are strong, so decide on interest and goals.
Students who answer such questions often start with questions of their own. What career do you want? Do you plan a research career, and do professors at that campus publish? Do students go on to top graduate schools? Where would you prefer to live? Those questions usually settle the matter faster than any ranking.
My practical suggestion: write down your answers, then speak with a few seniors from each course. If you still cannot decide, choose the branch you would study even without a famous label.
Pick based on what you want to do after graduation.
When people compare IIT physics-type branches against BITS CS, a common view is that you must first ask what matters most: the career you want, whether you want a research path, and whether you have a preference on city and climate. Without those answers, no ranking helps.
Also consider the cost, since BITS is private and typically costs more than an IIT, and think about whether the branch-change options at each place matter to you.
Think about the end goal first.
A point to keep in mind is that Engineering Physics is a flexible but less direct degree. You will likely have to build coding and project skills yourself if you want software roles. Computer Science at BITS gives you that structure from day one.
Ask yourself whether you are more motivated by the tag or by the subject. Also compare cost, since a private institute usually charges much more than an IIT. Finally, speak to a few seniors in each programme, and ask what the recent batches did after graduation.
I would frame it as research and flexibility versus a direct job route.
Students comparing IIT, BITS and NITs for computer science often say both IIT and BITS are strong but differ in academics, culture, faculty and alumni, and that the choice depends on what you value. That applies here too: the better college is the one that fits your plans.
Check fees and any scholarship options before deciding, because the cost gap can matter to your family.
I would choose by purpose, not by prestige.
Students who have weighed IIT physics-based branches against BITS CS repeatedly say the same thing: ask what you want from your career, whether you want research, and what the real placement history of each department looks like. A general ranking cannot answer those for you.
BITS Pilani, Pilani