The behavior that is both territorial and used for courtship is:
sparring or wrestling using antlers or horns.
This behavior is often seen in animals like deer, where males will establish territories and also engage in sparring as part of courtship displays to attract females.