Very simply, God preexisted and created Mary. Mary did not preexist nor create God. That is the logic and it is spiritual. Take it or leave it, whatever else you want to rationalize.
Personally, I believe in the Trinity.