I don't use names of people who've caused me grief irl because it spoils the name ya know? The only exception to this rule is Oscar because he named himself (character came from a dream and was referred to as Oscar by other dream characters) and I can differentiate the character enough from the person who I knew with the same name.
I generally don't use names of people I know irl be it family, friends, line managers, officers or colleagues even if I'm on good terms with them. I find it weird especially if it's someone I get on well with and it's really hard to differentiate the character from the person I know irl. Additionally, back in my school days I had people be vain enough to ask if my OC is meant to be them, be really persistent about it and go as far as demanding me to draw/write that character in a certain way even if the OC had a completely different name/personality to them. Ah, joys of school drama but it is why I am super wary about using names of people I know irl. That said sometimes I do meet people sharing my OC's surname/forename so it can't be helped in those cases and I'm generally not going to rush to change my OC's name unless it becomes an issue/that person turns out to be nasty.
I'm not going to use names with fandom attachment. Example Luke, Edward, Dean, John, Finn, Flynn, Bond, Shelby and so on. That is provided I'm aware the name has fandom attachment in the first place. I did have an Alax Tracy for a while but I kept associating him with Thunderbirds even though he wasn't a fan character so I had to scrap him.