When a Mac is slow or weird right after logging in, I’d first want to know whether one of the apps that starts with it is to blame. macOS has a quick way to skip all of them once, and a settings page to clean them up after.
To skip login items for one login, use Shift:
Login window: hold Shift while you click Log In,
let go when the Dock appears
If you don’t get a login window (automatic login), restart the Mac, hold Shift when the progress bar appears, and let go when the desktop shows. If the Mac now behaves, one of the login items is the likely suspect.
Then go and look at the list:
System Settings > General > Login Items & Extensions
The top part holds the items that open when you log in. Select one and click the Remove button below the list. The other part lists apps that are allowed in the background, with a switch per app. Those let an app do things while it isn’t open, like checking for updates or syncing data.
The caveat: be careful with those background switches. A backup tool, a sync client or a VPN often needs that background part to work at all. Turn one off and it may quietly stop doing its job. I’d only switch off things I recognise and know I don’t need.
Further reading: Open items automatically when you log in (Mac User Guide)
Going deeper: Guide: keep your Mac apps in a Brewfile, so a new MacBook is one command away