Sure but for Xi all the killings are not a point against Mao, and probably a point in favor of Mao in Xi’s mind. Xi and Putin care little to nothing for the economic policies of Mao and Stalin, just like that both were very feared, basically worshipped and could send millions of their perceived “enemies” to their deaths. Admittedly Xi is too comically incompetent at times to really be Mao, but I am sure he wishes he had Mao’s power, ability to strike fear and awe and prominent place in history.
The mass deaths is not a problem for Xi and might even be a bonus.