what happen if i have the same route as path alias? What if I have the following route in a custom module and a path alias that is equal to the route path?

mymodule.contact:
path: /contact
defaults:
    _controller: Drupal\mymodule\Controller\MyController::contact
requirements:
    _permission: 'access content'
The alias gets priority over the route.