You forgot the part where macOS "restores all the windows", which it never gets right, so you get pop-ups from Notes, Maps, Music, etc. telling you at the same time "Here's what's new".
Plus if any audio was playing, it attempts to resume it during the final restart even though you can't mute it for several minutes since it is finally into the user login.