"they are almost three times more white male CEOs than there should be." Only if you assume CEOs should represent the current population demographics, or something is wrong, and that something is discrimination.

But why should that be? CEOs don't become CEOs overnight. There is a long process of education, socialisation, and selection involved. Of course long established groups will be better represented than newcomer ones.

Layoffs are usually done on the basis of who the company considers essential to its functioning and which peripheral. When unionized, it is usually done by seniority, and yes, that advantages those long established populations.

So yes, it is not surprising that the CEO will in the majority be white and male, in countries where long established populations are white, and women have only recently joined the workforce. That does not mean it is "discrimination".