But Hong Kong became prosperous during a time when it didn't have either of those.
During the booming 70s-90s, just about all high level government officials were appointed by the British. In addition, most of the upper class were British as well.
Local Hongkongers were often second class citizens.
Likewise, when Singapore, Korea, and Taiwan were booming, they were essentially dictatorships.
Heck, compare South Africa and Zimbabwe during the apartheid era to now.