The comparison between the two is pointless.
Allegri is the better coach by far, but his play style had deteriorated significantly in 2 years. He had to go imo.
Btw, my standards for judging Sarri will be pretty high.
Scudetto is minimum, CL semis at least with attractive football to boot.