He's better than the alternative. Mahdi is in the pocket of Iran. He would have been a disaster.
Mahdi was the candidate supported by the Kurds and the Sunni and also an opponent of Moqtada al-Sadr.