Allah has preferred men on djinns because Allah said to the angels: “I will put a caliph on earth” (Baqara), whereas the djinns were lready on earth. So it is not the djinn who is the Caliph of Allah on earth but man. Also, when Allah created Adam, Allah ordered Iblis to prostrate before Adam but did not order Adam to prostrate before Iblis. Moreover all the prophets Allah has sent are only human, there has never been a prophet djinn, men were prophets to the men and djinn. So Allah has preferred men on djinn.