In a Nutshell:
The prophet prohibited imitation of disbelievers to distinguish the Islamic civilisation centered in Medina from other civilisations.
The prohibition centers on emulating that which characterised their civilisations, polities or societies, to separate and emphasise the uniqueness of the Islamic civilisation and its truthful basis and call.