Hitler's goals were very similar to those propounded by the religious. By eliminating all differences between people we would have world peace.
Indeed their methods are very similar. Kill all those who different.
The similarities are remarkable. The Jews were "The Chosen Race" and had "The promised Land". Hilter had "The Master Race" and "The FatherLand".
I consider it remarkable irony and one of the greatest hypocrisies of all time that we are expected to honour the story of Joshua and the Hebrew genocide as evidence of the glory of God while deploring precisely the same behaviour by Hitler.