Both are excellent, and the right choice depends largely on your branch and what you want from college.
Rankings and student opinion usually place them close together, a notch below the top five older IITs.
If you are keen on computer science, a current Pilani student argues that BITS is better than Roorkee for CSE, and many aspirants with high JEE ranks do choose it. If you are not sure about your branch, or you value the IIT tag and a more standardised, research-friendly system, Roorkee is the safer pick. A student comparing the two also notes that high-ranking JEE candidates rarely pick BITS over an IIT of this level, so the IIT brand still carries weight.
Don't ignore fees. A private institute generally costs considerably more over four years, so factor in your family's budget and any scholarship options. Compare the specific branch you would get at each, speak with seniors in both, and look at the latest placement reports for that branch before you decide.
It is difficult to say which is better, BITS Pilani or IIT Roorkee, as they are both highly respected institutions in India. Both universities have strong programs in engineering, technology, and science.
However, BITS Pilani is known for its focus on undergraduate education, while IT Roorkee is known for its research programs. Yet if I was to choose one, I would have chosen BITS Pilani for BTech
However, if you are someone who is interested in MTech in core branches or is inclined towards research work, then IIT Roorkee has a better research culture. Moreover, the extremely high fees at BITS Pilani might be a demotivating factor for many making IIT Roorkee a much better choice.