Is the presence of the duplicate names when reading a union directory actually needed/used anywhere? Or is it just an artefact of the most straightforward implementation for Plan 9?

I ask because I'm implementing the Plan 9 system calls on my own OS. If I don't have to implement the name duplication in union directories, then I may be able to get away with less code.