Care to refine your question? One difference worth mentioning is that the Navajo code was never broken, unlike Enigma.
they don't compare at all. One is a Machine that deciphers codes, the other is a spoken language.