Direct wired connection, over wifi?

So, if I have PC1 and PC2 directly connected with an ethernet cable, but they're both also connected to the same wifi network, will it prioritize the wired connection, or will it be forced to use the wifi

Tagged: