Kind of a moot point, but TargetUnit(UnitName("player")) === TargetUnit("player"). :)
But what happens when there is a hunter who insists on naming his pet the same name as he is himself? (supposedly to make it harder to target him in pvp)
I know grid have issues with that and I had to tell the hunter to stop using that pet. I think it targetted half the spells to the pet and half to the hunter. Annoying as hell when grid tells me the hunter is dead but he isnt.