Its my understanding that Cordoba was one of the cities that most fully assimilated to the Arab conquerors in the peninsula, which play a large part in becoming the capital of the Emirate/Caliphate. Would it have been possible for a different city to become the capital? Cartagena, Toledo, Barcelona, perhaps?