Not writing allegory (a very specific kind of comparison) doesn't mean nothing in the book is a metaphor. It's willful ignorance to pretend LotR has no ideology or non-narrative (moral, epistemic, metaphysical, etc.) content. Tolkien just doesn't want people to say "... and so the orcs are the Germans."