Matching partial data

Helloo! Is there a way to match partial custom_data instead of exactly matching it? I'm talking about i.e. in item model definitions or advancements, when you specify an item's custom data, you have to exactly specify it. If the item has any extra keys it will not match and will not trigger anything. Any help is appreciated! (I'm on 1.21.5 btw if it matters)
Continue to help post