Thank you for your answer. I understand what you're saying about converting and binary comparison. I just didn't go that far yet.
Is there a way to stop DOpus from rotating AT ALL if the the image is not a multiple of its block size? I know, most images probably will use the "correct" resolution, but still, it bothers me
There isn't. If you ask Opus to rotate the image, it will rotate the image. Lossless if it can (and NOLOSSLESS isn't specified), but it'll fall back on lossy if it needs to.