No local or regional board of education shall discriminate on the basis of sex, gender identity or expression or marital status in the employment of teachers in the public schools or in the determination of the compensation to be paid to such teachers.