A parts list has the codes ab12, AB12 and Ab12 for three different items. A normal lookup treats them as the same code and returns whichever comes first. You need one that respects case.
VLOOKUP, XLOOKUP and MATCH all ignore case. The fix is EXACT, which compares two texts and returns TRUE only if they match character for character, including case. Give it the wanted code and the whole code column, and it returns a column of TRUE and FALSE with a single TRUE where the case matches.
Then look up that TRUE:
=XLOOKUP(TRUE, EXACT(F2, A2:A9), B2:B9)
The array EXACT(F2, A2:A9) has one entry per row. XLOOKUP finds the first TRUE and returns the item from the same row of B2:B9.
The older equivalent uses INDEX and MATCH:
=INDEX(B2:B9, MATCH(TRUE, EXACT(F2, A2:A9), 0))
In current Excel both work as ordinary formulas. In older versions the MATCH form had to be entered as an array formula with Ctrl+Shift+Enter.
Two cautions. EXACT treats a trailing space as a difference, so "AB12 " will not match "AB12". And EXACT compares values as text, so the number 12 and the text "12" count as equal.
If the lookup might fail, add a fourth argument to XLOOKUP, for example "No exact match". The Lookups track shows more ways to build conditions inside a lookup.