In D2, confirm this formula as an array:
=IFERROR(INDEX(A$2:A$13,(1/MIN(IF(ISNA(MATCH(A$2:A$13,D$1:D1,0)),ROW(A$2:A$13))))^-1),"")
Confirm a formula as an array using Ctrl+Shift+Enter, not just Enter. Copy the formula down to D10.
In E2, put this formula:
=IF(D2="","",LOOKUP(D2,$A$2:$B$13))
Copy down to E2.
Assumption: Data in col A will be sorted.