Neither is better for everyone. Students describe the two campuses as close in quality, so the choice usually comes down to branch, current placement strength and what daily life is like for you.
Pilani is the older campus. Its main downside, according to current students, is the remote location. There are few food options nearby, mess food quality swings through the semester, and getting home can be a long trip. Goa has a very different setting, but students say its placement cell has struggled to bring the right companies in a recent cycle, and that Hyderabad did a bit better in that period. Seniors also expect Goa's placements to improve as new recruiters come in.
For computer science, students who compared the newer campuses say the departments are about equal and that you should choose on convenience, such as distance from home. Faculty also rotate between campuses, so the teaching experience is more similar than you might expect.
My advice is to rank branch first, then campus. If a branch you want is available at Pilani, take it. If you get the same branch at Goa, don't feel you're settling, but speak to a senior there about the current placement situation before you lock your preference.
As an ex-BITS Pilani student, I recommend you choose the Pilani campus for the following reasons.