The behavior that is both territorial and used for courtship is:
sparring or wrestling using antlers or horns
This behavior is typically seen in species like deer, where males may spar to establish dominance (territorial behavior) and also to attract females (courtship behavior).