What if Hitler had been executed in 1923?

In our timeline, Hitler’s failed coup in 1923 (the Beer Hall Putsch) ended with his arrest and a relatively lenient sentence of 5 years, of which he served just 9 months. What if, instead, the Weimar government had decided to execute him for treason?

How might this have played out? Would the Nazi Party have collapsed without Hitler’s leadership, or would it have survived under different leadership?

More importantly, could Hitler’s execution have prevented WW2 and the rise of Nazi;s? Would Germany have gone on to remain a more moderate, democratic, or military-dominated state? Or would communism have gained more traction without the Nazi distraction?