LOTR is very much an allegory. Moral purity (or the closest thing to it), in the form of Frodo, is fragile and weak, but ultimately overcomes the greatest evil. It's the same idea in Star Wars. Ultimately Luke wins by refusing to kill his father, by choosing death over patricide. Through love.