This isn't a complicated war. The US can't and won't do occupations, so the only thing you need to do is cause problems till they leave.
Iran doesn't have to conventionally defeat the US military and can't: so they're just not doing that, and instead going after valuable economic targets which are politically sensitive to Americans and impossible to defend since they're risk sensitive.