Compare the elements at nextLeft and nextRight to decide which to take.