So it's ok if the condom broke, or if the Pill failed? That makes it easy- you just have to lie to your doctor. "Of course we were using protection. I don't know how I ever managed to become pregnant!"
The solution of this problem is trivial and is left as an exercise for the reader.