I have an unusual name so when I meet new people my brain focuses on their reaction to my name and how they pronounce it, so I completely zone out when they tell me their name.
I might remember it for a short time but almost always I forgot their name if I don’t interact with them frequently.
Sometimes names have certain colors and I either associate the person with that color or the person already made me think of a certain color that just so happens to fit their name; otherwise, dunno some names are easier to remember than others and there's no pattern to that for me