You have it completely backwards there. It is Google that has the ulterior motive/financial gain in not adopting H.264/H.265. They are the only major player who has not adopted it. And if Google decided to force WebM in YouTube it would absolutely destroy it.
This whole weird misadventure Google has embarked on will be abandoned sometime soon. There simply is nothing to be gained from it.