Japan is the former and Singapore is the latter. Both end up in good places to live, but one has to have the full discussion about the reasons and causes for each.
All of East Asia is homogeneous. Every country is highly paternalistic and legalistic. North Korea is probably both the most homogeneous and authoritarian country on earth.
In reality heterogeneous societies are significantly less prone to this. You could not turn India or the US into comparable police states because nobody would even agree on how to get there. Singapore gets away with it because it's effectively a small city state. A country of similar composition but 10x larger, which happens to actually exist just North, Malaysia, could never maintain that level of repression.
They seem to be perfectly fine with it in Kashmir.
Also I’m not convinced that executing people for non-violent crimes is a good tradeoff in the first place.