On the GTS, say a Pinsir is up for trade. Two people trade at the same time but there is only one. What would happen?
Whoever had the faster connection would get the trade. It happens all the time. Someone's going to connect first and they'll get the Pokemon.