Yes we can, but docId will reach DocIdSetIterator.NO_MORE_DOC sooner than matchedDocId, so it better to check for docId (docId comes from docAndNestedDocsIterator which only match docids of the current main docId and its nested docs in the current hit context of the fetch phase).