Try this and copy down:

=OR(C2=D2,C2=E2,D2=E2)