Tell that to the Mujahedeen, the Taliban, the Viet Cong, Mao, and George Washington.
Just because the government has tanks does not mean "we have tanks and nukes, therefore we'll win" has proven true across military history.
Tell your history lesson to a Reaper drone. You can see how modern version of people's insurgency could look like in modern Gaza. This is exactly how would citizens vs. US play out. With Palantir painting the targets on the appropriate backs and declaring anyone in the blast radius as domestic terrorist.
The US has lost multiple wars to goat herders in pickup trucks with small arms.
As Ukraine has demonstrated, a shaped charge and consumer drone is highly effective against even heavy mechanized armor. ERA doesn't work well for multiple hits, and drones and HMX/RDX are cheap.