The problem is, racism is not logical: It is a tool for maintaining privilege and power. No amount of non-threatening technological superiority, such as enjoyed in many ways by the Moġuls, Ming Chinese, Ottomans, Songhai or Inka, would be enough to make the European imperialists realize that they were wrong: If you were the other, all they respected was brute force and strength in war.
This is why in the Invasion of Aotearoa the British gave the Maori an unusual, if patronizing, level of respect during the Musket Wars: They were good at fighting.
On the other hand, the Inka were in many non-military (and military) ways far ahead of the Spanish but they were, or more accurately appeared to be, hesitant to fight and, being the Other, were not respected for their sanitation system, their aqueducts, their communications network, their economic superiority, their low rate of crime nor anything else.
And even when the Inka did begin to fight back, another key factor in European Colonialism was exemplified: The lack of ability to compromise. The Spaniards, like all European colonial empires, did not try to tolerate or compromise with their subjects but instead insisted that they were treated as "heathens" and such by way of their not being Christians; even during the Crusades, the Muslims, clearly ahead of the West at the time, were not really respected by many because their beliefs, however similar, conflicted with the demand of Christianity, and Abrahamic Religions in general, on a monopoly on belief.
This can be contrasted to the Indians, of which even the rather syncratic Moġuls were quite tolerant, while in the days of the Mauryan Empire their was essentially religious freedom on a level that Westerners today would respect or even admire. Similarly, China had it Great Buddhist Persecution but besides that the Confucian Religion did not demand a monopoly on belief, as can be seen with the harmonious coexistence of Daoists and Chinese Folk Religion practicers among Confucianism. Similarly with the various Dharmic practices in India that rarely fought amongst each other until Islam came. Similarly with the tolerant Malians who, despite being loosely Islamic, tolerated traditional religions to a greater extent than Europe would until the Enlightenment.