Google most probably also stores the originally uploaded video. They'll be stupid if they don't. IF they're going to re-encode, they'll use that file of course...
AFAIK, ogg is nowadays pretty much on par with h.264 in quality, or quality/MB. The source-material may have some effect though.(most...