Dynamic facets with 3 category?

I’ve read the online article from here:

Link: https://www.algolia.com/blog/engineering/implementing-faceted-search-with-dynamic-faceting-with-code/

In this article, I understand that if the query matched from two category. then it returns the facets from that category whose number is higher.

But what if query matched in multiple categories and returns from three categories: and two category’s value are same.

Like this:
category1: 12
category2: 41
category3: 41

Then, it dispaly from category2 or category3 ? or choose randomly between them or not return any facets?