Fascist dictatorships are highly legalistic entities, they require frameworks of legitimacy to survive and they require legal systems to carry out their goals. The Nazis eventually eschewed the stochastic terror of encouraging random pogroms because pogroms invited public displeasure, and public resistance. Even virulent German antisemites often did not approve of their neighbors being firebombed, shop windows broken, and random beatings in the street; the more widespread that terror got, the more the public felt the Nazis were illegitimate thugs causing chaos. So the Nazis pursued formal, systematized means of destroying the livelihoods and eventually lives of Jewish people, they interpreted German law and built legal theories that let them arrest and concentrate their targets using law enforcement, they used doctors and lawyers and police in place of street fighters and firebrand terrorists.
The genocide carried out by the Nazis was legal, and it wasn't just legal because Nazi Germany was a dictatorship, but rather because the Nazis built from prior existing laws and expanded the power and authority already available. They took pains to act in ways that preserved that legitimacy.
Project 2025 is that.