I've not seen any sources claiming such a large number; hundreds of thousands targeted specifically due to their religion and over all races combined, but not millions.
20 million targeted by both race and religion would have been a bigger thing than the actual literal holocaust.