If the legislative body of the City and County of San Francisco adopts, or has adopted, an ordinance which prohibits discrimination on the basis of sexual orientation, it may require the agency to prohibit discrimination on that basis. In this case, the agency shall implement Sections 33435, 33436, and 33724 as if the discrimination prohibited by the legislative body were also prohibited by Section 33050.