What is the meaning of Have_the_upper_hand?

Advantage or control.

The place of honour accorded to a social superior when walking together; the right of way in walking

Source: wiktionary.org