The hardware still matters because it lets you execute suspected collaborators and force the occupiers to incur cost hardening their logistics train (i.e. insurgency 101 type stuff) without waiting for the bureaucrats in whatever foreign country wants to fund your insurgency to prepare your arms shipments.
Ummhmm... and how you going to stop either a tank, artillery, drones or air strikes?
If you're in a situation where the thing you're doing can be meaningfully called an "execution", a firearm is a convenience, not a necessity. There are also plenty of effective attacks on logistics trains that don't involve firearms, though I will grant that they are at least sometimes a force multiplier there. Hence "that matters a little".