MODE-2346 Changed the logic around the selection of the indexes in the query plan.

 User-defined indexes should always have priority over the `DescendantsByPath` implicit index.