Both programs are very good, the specific PI is going to be much much more important than any generic advice you glean from this thread. Separately, the environs are very different. Stanford is pristine, quiet, safe, boring, isolated, VC-oriented. Berkeley is urban, gritty, dense, exciting, outgoing, academic. For most people it doesn’t really matter but if it does for you this could be important.