China was never really a totalitarian dictatorship under Mao either, he mostly got forced out of power by the rest of the communist party in 1959 after his great leap forward reforms resulted in millions dying. He never really regained power except in a sort of spiritual sense. There is a lot of complex political history in communist China.
Its most certainly incorrect to compare Mao with Xi.