This is a very interesting scenario you bring up.
Anna and Bob agree to have sex. Anna would prefer without a condom, Bob insists they must have a condom. Anna sabotages the condom by poking a pin through the package. They have consensual sex with the condom, which unbeknownst to Bob has a hole placed there by Anna. Anna becomes pregnant. Is it an absolute unquestionable legal fact that Anna raped Bob? Should Anna be arrested? If Anna leaves the country, should she be extradited to face justice?
And does this only matter for a particular kind of birth control? Anna tells Bob she is on the pill but she is not. Bob consents only on the condition that Anna is on the pill. They have sex. Is it an absolute unquestionable legal fact that Anna raped Bob? Should Anna be arrested?
What about sex conditions not related to birth control? Bob agrees to sex with Anna only on the condition he be allowed to wear his warm wool socks to bed. During sex, Anna finds the socks to be scratchy and pulls them off. Is it an absolute unquestionable legal fact that Anna raped Bob? Should Anna be arrested?
There is a famous case before the highest court, where a doctor, after forgetting to perform a sterilization a patient requested together with the caesarian birth of her second child, was deemed liable for the financial loss incurred by the existance of her third child.
Assange argued that the accused act would not be illegal under English law; the High Court disagreed (and hence the dual criminality test was fulfilled).
Misleading in order to obtain consent is not the same as getting consent for activity A then undertaking activity B.
In the first instance one can complain that they wouldn't have given consent had they known the truth. In the second instance consent was not given.