Even though lots of arguments can be made to favor elite privates over elite publics when the costs are the same, in this case UCB wins hands down even if their costs were about the same (UCB should cost much less if you’re CA resident). You should take a deep look at the CS program at each school to see what they offer in the area of CS you’d like to specialize (presumably you’d like to be more than a competent programmer).