It is debatable if China in 1989 could be called civilized. At that level Egypt seems to make short work of aggressive demonstrations, I would hesitate before calling it civilized.China could, at least in 1989. It's more sophisticated about how to avoid repeats these days. (Though we'll just have to see how it goes once China hits an unknowable but inevitable bump in its economic growth, since the CCP has based its legitimacy on the ability to continue to create prosperity for the public.)
Clearly Ukraine wasn't and isn't China.