Didn't Mary have a choice to say No?
we can never know what God "knows", its incomprehensible; however, with our free-will and His Grace, we can know His Will.
I’m sure she thought she did. I believe His will, is what is happening.