The reason why the Ming Dynasty established by Zhu Yuanzhang did not perish like Qin and Sui Dynasties and became a short-lived dynasty was precisely because of the uniqueness of its times. Some things in the Ming dynasty look very similar to Qin and Sui dynasties, but this dynasty is even more different from the other two dynasties.
First of all, in the early Ming Dynasty, under the leadership of Zhu Yuanzhang, a series of practical and flexible systems were established, such as its household registration system. Ma Boyong wrote an article about it, and Zhihu answered this question in detail. You can have a look if you are interested. It is precisely because of the establishment of some concrete and practical systems that this country can maintain its normal operation after some problems in the courts. For example, during the Wanli period of the Ming Dynasty, the emperor did not go to court for decades, but the whole country was functioning normally and peacefully.
Secondly, we should pay attention to the reasons for the demise of Qin and Sui Dynasties. The cruelty of the emperor was not the only reason for the demise of these two dynasties.
More importantly, the reason for the demise of the Qin Dynasty was the abuse of the people's power to build various palaces, tombs and other buildings, and the heavy corvee overwhelmed the people. And the emptiness of armaments, mature men were arrested to build various buildings, and the construction of the army was very backward.
The reason for the demise of the Sui Dynasty was that the gentry and the military aristocracy were too powerful, which led to the weakness of the army belonging to the country. The three wars with Koguryo all ended in failure, and the prestige of the royal family in Sui Dynasty declined, and the people's hearts deviated. Plus heavy taxes.
The system and political bureau of the Ming Dynasty were very different from those of the Qin and Sui Dynasties, and Qin and Sui Dynasties were not only destroyed by tyrants, so there was no inevitable possibility that the Ming Dynasty was as short-lived as they were.