I think hegazi would hold his own in a top team when called upon, maybe not as a regular starter or a star, but 10-20 appearances a season.
Some bang average players (relatively by top elite standards) particularly defenders have got away with playing semi regularly at top sides that control more of the ball / game and limit their exposure.
I still can’t see Hegazi going to Real Madrid mind but I’d rather put him on than Matip if I we’re at Liverpool for instance.