Both Madara and Yhwach have utopian aims to end suffering and ultimately history itself. Imu on the other hand is the exact opposite. In schmittian terms he is the Katechon who holds back the apocalypse. Imu is under no illusions about changing the world, because the world currently is his world. Imu and Yhwach are similar however in that they are both defined by hierarchy whereas Madara ultimately does want an egalitarian world, a world with all winners as he said himself. Hence why Madara and Imu are the two furthest away in terms of character.
Madara (utopian and egalitarian) vs Yhwach (utopian and inegalitarian) vs Imu (Neither).
Madara (utopian and egalitarian) vs Yhwach (utopian and inegalitarian) vs Imu (Neither).