A leaked document written by a Google engineer said it was an "uncomfortable truth" that the company wasn't positioned to win the AI race.