It's not like he doesn't have any agency in this.
If he's going to catch heat for it anyway, he might as well take what he's contractually entitled to.
If I am working for a company where the role I am in has a statistical likelihood that I will be fired in the near future, I am going to take every comp dollar I can get and not offer any compensation sacrifices for optics sake.
That is true of any CEO pay, though.
It was also a pay cut from a TCTC (Tim Cook total compensation) high of $99 million the year before, which seems mindbogglingly high but also make him out to be a bargain in comparison to Pichai.
Imagine CEO pay wasn't high.
They would still be reaping a huge portion of the benefit of shareholder-friendly (and less employee-friendly) policies, but escaping the blame.
Effectively, the amount of capital appreciation they've squeezed from layoffs dwarfs the CEO pay package, without any scrutiny.
Those high ratios led Apple shareholders to request a pay cut of their CEO, and that was without poor performance or firing workers.