It would be really dumb for Obama to endorse either of them until it's decided, and he's not dumb.
Imagine how awkward it would be if he endorsed one candidate now and then the other clinched the party nomination. Yeah, that wouldn't be embarrassing at all.