Where I live, I have to have this conversation way too often with people.
Early Modern Period (~1600 AD)
Medieval Period (~1000 AD)
(thelemmy.club)
Technology alone doesn't win wars. Hernan Cortez only subdued the Aztecs thanks to managing to get several other native groups to join in on an assault against Tenochtitlan. Diseases that were new to the Americas also killed many natives, way more than any direct confrontations. On an funny note, the Australian army technically lost a war against emus, which are large, flightless birds.
Keep in mind that colonial powers always used local groups to keep things "in order". This was no different to how they did it in African and Asian colonies: find a group that you can bully or buy and ensure they stay in power, for a price.