The most logical thing for Dmitri to do if he suspects he might have an STI is to go to his doctor and get tested (option D). It is essential to seek medical advice and diagnosis from a healthcare professional in cases of potential sexually transmitted infections.