Reduced Wi-Fi data rates when network switch added between two Deco M5s
I ran an experiment whose results I am trying to understand.
I have a deco M5 in my basement connected to my Verizon FIOS box via Ethernet. This is my main router. I then ran Ethernet from there to my Deco M5 in my living room. When I use the Speedtest app both in the basement and the living room (on Wi-Fi) I obtain about 300 Mbps (essentially the max from my service provider). This is great but not the configuration I need.
Then I changed things up by inserting a 5-port TP-Link 5 port gigabit unmanaged network switch in the middle. Specifically it's this one: TL-SG1005D. To be clear the setup is fios box to basement router. Basement router to 5 port switch, and 5 port switch to upstairs Deco. I did this so I could connect other items to the switch (one of these is actually a 24-port gigabit network switch also made by tp link). When I run speedtest via Wi-Fi in the basement I get about 300 Mbps again. When I run speedtest on an ethernet connected laptop to the 24-port switch I also get 300 Mbps. But when I run speedtest upstairs on Wi-Fi to my upstairs Deco I get maybe 85-90 Mbps.
I'm struggling to understand how the network switch(es) add that much latency. I looked online about if and how switches could do this and all the responses are that switches don't do this and it's something else in the network as a bottleneck. I feel like my simple experiment says otherwise...but it's not totally definitive yet. Any ideas would be appreciated.