To be fair, Marx thought eliiminating ALL religions (including Judaism) would strike a crippling blow to capitalist exploitation, Marx did not call for just the elimination of Judaism. And Hitler defined Jewishness as racial and not religious.
Of course, Hitler DID want to destroy Judaism and Christianity, and all other religions, except HIS religion, neo-pagan Hitler worship.
In its perfected practice, Christian egoism of heavenly bliss is necessarily transformed into the corporal egoism of the Jew, heavenly need is turned into world need, subjectivism into self-interest. We explain the tenacity of the Jew not by his religion, but, on the contrary, by the human basis of his religion -- practical need, egoism.(emphasis was in the original)
Since in civil society the real nature of the Jew has been universally realized and secularized, civil society could not convince the Jew of the unreality of his religious nature, which is indeed only the ideal aspect of practical need. Consequently, not only in the Pentateuch and the Talmud, but in present-day society we find the nature of the modern Jew, and not as an abstract nature but as one that is in the highest degree empirical, not merely as a narrowness of the Jew, but as the Jewish narrowness of society.
Once society has succeeded in abolishing the empirical essence of Judaism -- huckstering and its preconditions -- the Jew will have become impossible, because his consciousness no longer has an object, because the subjective basis of Judaism, practical need, has been humanized, nd because the conflict between man's individual-sensuous existence and his species-existence has been abolished.
The social emancipation of the Jew is the emancipation of society from Judaism.
Not to be nit-picky, but the religion Hitler tried to impose on Germany was neo-pagan STATE worship. He wanted the Third Reich to thrive long after his death. Thus, he discouraged worship of himself.
Actually I think you have it reversed. The elimination of Capitalism (the latest and greatest form of exploitation), would eliminate the cause and basis of all religion.
Marx was a materialist; religion was epiphenominal.
It was a secondary consequence of exploitation, not its root or cause.