Thanks. I played around with your idea and got this. It’s still not 100% of videos. Only YouTube videos that have any H.264+AAC stream available (which is 99.9% of public YouTube today, even if the main/default version is VP9 or AV1).
But re encoding to solve this is not required. I stand corrected.