They don't duplicate because Either column "D" or "E" is empty.
names in A are different from either D or E and the cells aren't empty
What is the actual requirement for empty cells