Are there words in which the letter D is pronounced like T (and they are not those words which ending with the past tense suffix of -ed)?
I think it's the reverse: Ts are often pronounced like soft Ds in American English when the consonant appears in the middle of the word and when the syllable is not stressed. For example:
Keep in mind, it's not consistent, and the pronunciation might be different from word to word and from person to person.
But I can't think of any words where the D is pronounced T.
More info here:
Sometimes words spelled with medial 'dd' will be pronounced in some regional dialects closer to a /t/. This happens where I live.
With this heavy rain, the track is sloppy, so I'm putting my money on a mudder.
Left full rudder!
Depending on what you mean by "pronounced like T", certain words where /d/ comes after /s/ or before coda /θ/ might count. To my ear, disdain sounds like "distain", and breadth sounds like "bretth".
In English, the "voiced" plosive phonemes /d/, /b/ and /g/ are not always strongly voiced, and sometimes they may show partial assimilation when adjacent to voiceless obstruents. A "devoiced" /d/ sounds quite similar to an unaspirated /t/ (I don't know enough to say if an actual merger is possible). For example, I find it hard to hear a difference between the sound of "sd" /sd/ in words like misdeed, misdemeanor, disdain and the sound of "st" /st/ in words like mistake, misty, sustain.
I also hear regressive assimilation of voicelessness in my pronunciation of the words width, breadth, hundredth: the "dth" /dθ/ in these words sounds a lot like the /tθ/ in eighth.
When /d/ comes before a voiceless obstruent that is not in the same syllable, it may be phonetically devoiced, but the phonological opposition with /t/ is generally still clearly marked by the length (or in some accents, quality) of the preceding vowel. So a word like bloodthirsty does not sound like (a hypothetical word) "blutthirsty".