I'm curious: is the criteria that Calibre uses to determine if books are already on the device identified anywhere? (I'd even find "in the code" useful as an answer if someone can point me at the right file/function.

)
Sometimes Calibre can match two books up, despite differences, while other times byte-for-byte identical ePubs aren't matched. Which leaves me perplexed, to say the least...