What if several deepest categories match?

In Settings - Categorization, said:

An event can only have one category. If several categories match, the deepest one will be chosen.

But what if several deepest categories match? What’s the rule here?

Btw, how to define the depth of a category?