I have hardwired everything I possibly can directly into my Unifi Pro Max 24 POE which connects into my Dream Machine Pro. Router and modem do make a difference. I use the dBillion CAT 8 cable purchased from Amazon. I’m sure some may either think that’s overkill with CAT 8 or suggest something more exotic. What I do know is that I have zero issues with any of my streaming devices.
I would note many people advise against connecting the TV itself to the internet because they find the upgrades from the manufacturer screw things up. I do not have my TVs connected.

