Top brass doesn't matter. It's the mid ranks you have to watch for. The ones who have some power, but not enough for Trump to be able to demand full loyalty. As Vietnam showed us, when orders are unpopular, the officers start dying.
But no, there won't be salvation from the military, honestly the best scenario is them just stepping aside.
But if dipshits kick things off early, then they military will not stand aside. They will see it as an attack on the country and will gleefully put down "enemies of the state".
But when Trump ignores the election results, well, there are a lot of people who are lawful neutral, or even some lawful evil, and will not support the chaos of Trump ignoring the election.
And that's where we can win this. That and once the violence starts (after the election), the targets need to be the right ones, CEOs, billionaires, and such. Picked off in ones and twos, making none of them feel safe.