YouTube does this very thing. If you aren’t signed in (which I am not and never will), the whole page loads for enough time that you can press play only for the Sign In To YouTube Music account pop up to appear, which pauses and resets the video. When you click no thanks you have to press play again. Most websites get that you don’t want to create an account after clicking no but YouTube has gone full late 90’s dark patterns.