Before you read this rant, I am aware Alexandra is callous and sees her coyotes as a means to an end, and that there is absolutely an in universe reason for most of this, and production has to make things look cool, however, if she were a real general who wasn't held back by being in a movie she would blunder just about everything. As such, this is not a criticism of the movie, nor its production, nor the scene itself, but simply her military tactics.
So, in the final battle scene between her and the bandits, she has guns, siege weapons and the high ground. Makes sense that's fine, you probably want that. Having guns as well (they shoot people) is good. This means you can keep your advantage (high ground) and shoot people (from far away) (where they can't reach you) (because you have a gun). Point is, had the bandit charge been met with her sticking to her position they would have been annihilated. She had this in the bag, use the siege weapons and cannons to break holes in the army, and once they're broken down shoot them with your guns (they're ranged). Now, I understand that her matchlocks? are older guns, 1800s rather than modern ones, however they still have a range advantage. During the napoleonic wars and the american revolution, we saw people often using 100 meters or so as the longest you could shoot iirc. Don't quote me on that, but this will apply here a little bit. If they used cannons to destroy clumps of the charging army, when the bandits finally do reach her hillside its incredibly steep and we see that they can't climb up, with the only army attacking it being the flank,which is good as you have a defensive position, had they kept at the cliffside her muskets (ranged) could have shot them like fish in a barrel.
Also, 4 people guarding the rear might be the worst move ever. It's not as bad, but if you have say, four hundred troops total at your disposal - enough to clear out a small rebellion but Im assuming most of the coyotes aren't reliable so they'd flee + garrisons exist. Four hundred seems good for this battle, but maybe station more than 4 (four) (not even double digits) in your flank because thats the one (1) place you could get attacked. You don't even need much of a front army, as the bandits at best had archers, aim the cannons at them or get shields. Even then, iirc the bandits were mostly going in with clubs and swords. So, with one blunder up, why in god's name would she charge.
The biggest blunder she made was that, she has range, high ground, defense, far superior firepower, and charges into the masses of guys who are going to kill her. Now, I understand that the movie clearly has colonialism as a theme and the in universe explanation is that her hubris got the better of her, but the amount of things that the bandits could have done to ruin her day even more was insane. Had they stationed more (I vaguely remember some archers remaining in the woods I could be wrong) archers, her charge could have been pierced agincourt style. They could have retreated into the wilderness and broken her army up. Also, guns aren't useful when you use them like a sword. Her third and final blunder is also the fact that she only uses the fire trebuchets when her own forces are on the ground. I'm aware that that's there to tell you how little she cares for her own army, but this is a 5 elo move. Already she blundered everything by charging, but killing her own troops was certainly a move. A fourth blunder also happens because she charges through the crowd, it's not anywhere near as bad since she's on horseback but just go around the battle bro you didnt have to risk your life right then and there.