Hitler himself said he would end the jews if the world ganged up on Germany.
In a weird absurd way, Britains unwillingness to negotiate a peace with Germany and USA insisting on opposing Germany even when neutral ultimately created the holocaust as we know it because the nazis accelerated the killing of the jews as the war was progressing negatively for them.
The Germans regarded the extermination of the jews as a vital part of the war because it was the jews who were the reason why Germany was losing, as they were facing increasingly impossible odds.
Even in 1945 when defeat seemed imminent, the nazis accelerated resources used to kill Europes jews instead of adding it to the war-effort. They did this because they believed that if they were to lose this war and Germany would perish, at least they could win the war against the jews. Hitler even extended this mentality to the Germans themselves, arguing that Germany should be destroyed since the world-after wouldnt be worth living anyway.