Here's how I see the cards for each of these fighters:
AP/Dura:
Cracker - Moderate edge.
Doflamingo scales above Gear 2nd and 3rd Luffy, but inferior to Gear 4th without the use of Awakening, whereas Cracker, while still weaker than Gear 4th, has showings of being able to hurt him while Doflamingo has failed to do so (though he was weakened)
Haki:
Tie.
Cracker's Armament Haki is stronger, but he has no implication or confirmation of any usage of Kenbunshoku Haki, and Doflamingo has Haoshoku. So the edge doesn't go to anyone considering Doflamingo has inferior Armament, but 2 other forms of Haki to utilize that Cracker has never been shown using. It balances out.
Devil-Fruit:
Doflamingo - Moderate+ edge.
Cracker can create an "infinite" amount of soldiers to fight for him, but Doflamingo has vastly superior range, nigh-invisible threads, the ability to immobilize Cracker or his soldiers with threads spread out, fully control Cracker with Parasito (Parasito wont work on the soldiers since they lack any form of human parts or nervous system), and can fly upon other advantages that Cracker does not have including regenerative capabilities.
- Doflamingo also has awakening, so ground combat instantly goes to him as well, and Cracker is susceptible to attacks from literally any angle or direction.
Speed:
Cracker - Slight edge.
Doflamingo, at least when he was in perfect condition, can keep up with Gear 2nd Luffy, and is capable of reacting to Gear 4th Luffy (inconsistently, as he was able to fend him off for 20 minutes, but got blitzed at one instance--then again, he was weakened). But Cracker was capable of pressuring Gear 4th Luffy to some degree before the fight went off-panel.
Combative Intellect:
Doflamingo - Moderate+ edge.
Cracker is quite clever and utilizes some tricks in combat to catch his opponents off guard, but Doflamingo goes way beyond this, and easily tricked Luffy time and time again despite Law's warnings, manipulated Law into playing into his hands, and much more.
Stamina:
Doflamingo - Massive edge.
Cracker "lasting 11 hours" against Luffy means nothing when he was mostly standing around and calling in more biscuits to fight for him. Normal humans can perform physical labor for such a period and still be in okay shape by the end of the day. He never took a hit, and when he finally did, he passed out immediately. Doflamingo has taken much worse punishment, and could keep fighting, or shrug off the damage.
Fight most likely plays out with Doflamingo fighting Cracker (hidden in his biscuit soldier), and Doflamingo destroys the soldier without much fuss, leading Cracker into his surprise attack which would likely connect to Doflamingo, who would try to block, but take some damage (Doesn't matter cus Sufuku Sagyo unless Cracker manages to take an arm or leg). At this point, Doflamingo either uses Parasito and catches Cracker off guard, or fights normally and is pressed by the number of soldiers and Cracker, opting to use his Awakening and immobilizing the soldiers while simultaneously attacking Cracker with Billow-White.
Either Doflamingo takes over Cracker's body with Parasito early on in their fight, or he simply spams Awakening and whittles Cracker down until finishing him off. Cracker isn't going to get near Doflamingo due to there being hardly a difference in speed, Doflamingo surrounding himself with threads, having flight, kenbunshoku, possibly using Black Knight to trick Cracker into fighting a fake, thus trapping him and concealing his own location.
Doflamingo mid-diffs Cracker, only because current scaling suggests Doffy being weaker in AP/Dura. When the edits happen, Doflamingo takes this with lower difficulty.