Has nothing to do with video codec.
Download the video with yt-dlp & play it in mpv you'll see it even flies on a potato.
Play the same in browser and it'll be dropping frames left and right.