Any unified school district that is coterminous with or includes within its boundaries a chartered city or city and county shall be governed by the board of education provided for in the charter of the city or city and county. Sections 5000, 5017, 5090, 5091, 35013, 35101, and 35105 shall not apply to such unified school districts, except as follows: