There are different situations:
- preference to state residents
- preference to graduates of the state’s universities
- preference to graduates of the med school’s university
- no preference whatsoever
- impossibility (or virtual impossibility) for non residents (ie. CA)