You think beating Iran would mean the US invading, which is where you are wrong.
Hitting Iran's oil infrastructure, navy assets, air force, and (if desired) leadership in a Operation Preying Mantis 2.0 would not be very hard for the US military to do, and that is all we'd need to do to 'beat'...