I was thinking about this today, Germany's Final Solution was resource intensive. They used up men that were required on the front, and probably more importantly, it diverted trains that were sorely needed on the eastern front.
What was the motivation? The German government probably believed that the war was winnable? Why didn't they fight first, and wholesale murder later?
Here's the thing. Framing the Holocaust as separate from the German war effort is misunderstanding the mindset of Nazi Germany's leadership. u/commiespaceinvader addresses why we shouldn't think of them as separate, and u/warneagle also addresses the question.
/u/Estherke has previously answered How much did allotment of resources to commit the holocaust was inhibiting war efforts? and Even accounting for their hatred of Jews, how did the Third Reich justify the effort needed to conduct the Holocaust? Why make it a priority?
/u/commiespaceinvader has previously answered:
/u/Georgy_K_Zhukov has previously answered What was to be gained by using death/extermination/labor camps instead of using all resources directly towards to war?
The subreddit booklist features The Wages of Destruction: the Making and Breaking of the Nazi Economy by Adam Tooze.