Oh, really? I thought it was the "_my_ God" part that was swearing an oath.
Not every phrase with "my god" in it is an oath.
Unless if you swear (promise to do something) to your god (or on your god's name).
OMG is not that different from "oh man!" in use. It's for surprise. How does "swearing an oath" would be related to being surprised?
I see "Oh, _my_ God" as a statement of allegiance, as opposed to just, say, "Oh, God."
(Or that would be, if it even was an oath. But "Oh my god" is NOT an oath. "On my God", or "In the name of my god" would be that).