I'm sure it's true that this happened and the young Pakistani dev won out.
But the generalization from this anecdotal example to broad conclusions is of course BS. We know nothing about this German coder, what they specialized in for 19 years, and how good they are. Meanwhile, being young and Pakistani also doesn't imply you eat grass and make grunting noises.
There are many bright young programmers, and youth does help with productivity and adaptation to new tech (like AI).