If you've ever been in this situation, here's the ruling.
27. SPLIT HITS
If the cue ball strikes a legal object ball and a non-legal object ball at approximately the same instant, and it cannot be determined which ball was hit first, it will be assumed that the legal target was struck first