Try...

C1, copied down:

=B1=MAX(IF($A$1:$A$4=A1,$B$1:$B$4))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!