This is what I wonder too.
In almost every instance in history of a democracy beating a regime, it’s because the democracy had resource advantages. The Allies beat the Axis because the Allies had 5x greater numbers, better tech, Etc.
But in a war where the democracy and dictatorship have equal tech and numbers, I’d put my money on the regime winning. Because the regime has the advantage of efficiency and no internal obstruction.