Two coastal California cities, one northern and one southern, have taken widely differing approaches to affordable housing requirements.