Recognition
Ingredients are clues, not a complete identification
A list of main ingredients can narrow down a dish, but the method, the cut, the fermentation or the service may be what actually distinguishes it.
Travellers often identify a plate by its headline ingredients: a meat, a starch, a notable spice. That is a start. Many different dishes share those headlines and diverge in the cut, the ferment, the sauce order, or whether the staple is served under, beside, or after the centre. If you only match ingredients, you will collapse distinct plates into one.
Method is often the real difference
The same beans can be soupy, fried, mashed, or stewed sweet. The same fish can be raw, grilled, or cured. A short method word on a menu is doing more identification work than a long garnish list. When that word is missing, the ingredient list is incomplete as a description.
Allergies and refusals, of course, still depend on ingredients. A clue for recognition and a check for what you can eat are different jobs. The first can be approximate. The second should not be.
Use ingredients to narrow, then look at the method
If you are trying to recognise a dish, start with the obvious contents, then ask how they were prepared and served. Two questions usually separate plates that an ingredient list would treat as the same thing.