The Fairy's Lip case (1018-1021), which is the first manga case to have Kid being aware of Conan's identity, implies that (part of) Movie 3 is canon. So probably movie 3.
Why are people expecting good writing from a manga that is literally titled "I'm a Shy and Poor Otaku, but This Beautiful Rich Young Lady Is Obsessed With Me"?