Williams vs Berkeley for either premed or CS/tech?

You can always go from a tech career to med school. There are plenty of students like this each year in med school admissions.

But going from practicing MD to a tech career is pretty much unheard of. There are some fields within medicine that apply technology (Medical Informatics, Genetic Bioinformatics) they are not a typical path.

I can’t help you pick, but it sounds like you need some time to make this decision. Just go to whatever school you feel more comfortable at. You can always decide later.