Why would any producer in the US sell it locally if they could get more by shipping it?
I am not confident that the Democrats would even implement such a ban, as they get pretty big campaign donations from the oil industry as well.
The US produces oil which goes to foreign refineries for the same reason.
The effect of "banning exports" is non obvious.
Conversely not starting a war with Iran had some really obvious benefits that every previous administration recognized.