The behavior that is both territorial and used for courtship is:
A sparring or wrestling using antler or horns.
This behavior is often seen in species like deer, where males will engage in sparring to establish dominance and territorial rights, and it is also part of their courtship displays to attract females.