Who would you rather get to "keep the oil"? The country that sunk hundreds of billions into first destroying and then rebuilding Iraq, or some other country?
I'm not really sure what you're asking? The oil is in Iraq and by international law belongs to Iraq, not the USA or some other country.
But even assuming that the USA should "keep the oil" -- how would that work in practice? You can't just pump it all out and make a quick exit. Estimates say that there is 140 billion barrels of the stuff. (That's over 22 cubic kilometres!)
The United States would have to maintain an occupation force to protect the wells and pipelines for years while they're enjoying the "victor's spoils", as Trump puts it.
It's unlikely that any other country would purchase oil produced under such circumstances, so the oil would also have to be shipped to America... And the only shipping route out of Iraq goes right under Iran's nose. You can see how this might escalate quickly.
Trump's idea of keeping Iraq's oil would make for an interesting plot point in an alternate history fiction about World War III.
I don't mean just take it for free, that's not going to work. But I don't see why US companies should not receive a modicum of preferential treatment. As things are right now, US spent hundreds of billions of dollars and thousands of American lives to remove Saddam, and then other countries (China, Russia, Turkey, etc) moved in and took advantage of the oil. That's idiotic.