Google Lighthouse recommends not embedding YouTube videos directly
developer.chrome.com
developer.chrome.com
So YT have no motivation to address the issue, you see the same thing across all of Google’s other embeds too
While the Chrome team may care about front end performance there’s little evidence the rest of Google do
I’d recommend using HasShortcode in the head so the script is only loaded if the post has a shortcode.
Also, use {{/* and */}} to stop Hugo from trying to render a template tag so you can include it in a code snippet.
It was good then.
There's plenty that can be said about Google, but investing in education and testing around web performance was one of their stand out achievements imo.