Tim Cook is also a brilliant strategist at using Apple's strength with suppliers. For example, Apple has first dibs on TSMC's cutting edge process. But even gambles he lost, like making huge sapphire crystals for screens and maybe even phone bodies, are daring and innovative.
A DE Shaw hire has a much, much higher probability of being technically inclined than a McKinsey hire. You probably are not going to find the “finance bros” you are thinking of at DE Shaw.
Sundar Pichai was a Materials Scientist at Applied Materials before he did his MBA.
He did his MS in Materials Science at Stanford.
Also, plenty of STEM background people join McK later in their careers (especially in the electronics space) because there is plenty of demand for Strategy and Management Consulting in the industrial world, as LDPs aren't as popular anymore