I wonder if someone has taken advantage of this. Responding with one site for search indexing over HTTP/1 and another over HTTP/2 (which most users would actually get).
Googlebot is a well known user-agent, but they do verify with impersonation. It's a heavy penalty (usually delisting) for serving them noticeably different content (there's of course leeway, because sites are dynamic)