It would be the purchase price in this case. It’s really the lenders choice but the more conservative and correct choice is taking the lower of the purchase price or the appraisal value as far as a risk mitigation strategy so that is the one they chose. This prevents a poor appraisal or a crazy high offer from increasing the lenders risk.
Permabear, prop 13 has nothing to do with private mortgage insurance.