Democracy is the worst possible way of running a country, except for everything else that's ever been tried.
As your examples point out, the nuanced truth of that saying is that any system will occasionally produce good leaders, and occasionally produce bad ones. The test is which system produces which kind more often.