Experimental evidence reject the local hidden variable theory, so let's say quantum mechanics is right and the wave function does instantaneously collapse upon measurement.
Suppose we have two entangled particles A, and B spaced arbitrarily far apart, Alice measures A, then the wave function collapses which makes Bobs measurement of B definite. The same logic goes if Bob measures first and Alice measures second. But what if Alice and Bob happened to measure A and B simultaneously? When Alice is measuring A, Bob hasn't measured B so her result should be random, the same idea goes for Bob, so both of their results should be random. Please let me know if there are flaws in my logic or this is simply impossible.