Shader compilation deserve a painful death.
Hopefully new engines are not gonna suffer from this shit.
This week I started to play Detroit Become Human on PC. I started the game and the first thing it does is compile all shaders.
It took a couple of minutes, but after that the game was running smooth as butter.
There are already solutions to this problem, devs just have to implement them.
And as far as I know, UE has these tools. For example Borderlands 3 in DX3, also compiled all shaders at the first startup.