I am a little confused about how different network protocols work when using multi gig unmanaged switches.
For example, I understand that if I had computer A with a network card that supports 2.5gbe/1gbe/100mb and connected it to computer B that has a network card that supports 10gbe/1gbe/100mb, the two computers would negotiate to have a 1gbe connection as that is the fastest standard that they both support. However, if there was a switch in-between the two computers that had ports that supported connections up to 2.5gbe and other ports that support up to 10gbe, would computer B be able to transfer data at 2.5gbe to computer A even though computer B does not have a nic that supports 2.5gbe? Does any of this change when using a rj45 connection for computer A and a sfp+ connection for computer B?

My current situation is that I want to connect my desktop to my nas/server and my desktop has a 2.5gbe Intel i225 nic and I am looking for a new nic for my nas/server as it only has a gigabit connection currently and want something faster. The switch that I currently have has 8 2.5gbe rj45 ports and 1 10gbe sfp+ uplink port (https://www.amazon.com/gp/product/B0C861FKB1?th=1). I currently have my desktop connected to 1 of the rj45 ports and want to get a sfp+ 10gbe nic like the Intel X520-DA2, but it does not support 2.5gbe; only 10gbe/1gbe/100mb. Will this be a problem or do the protocols between the individual devices only matter and not the network as a whole (PC A to switch has the same protocol and PC B to switch has the same protocol but PC A to PC B has different protocols). I also plan to use a DAC cable for the sfp+ connections so specific transceiver protocols shouldn’t matter I believe.