In initial and final position, /d/ is not fully voiced so it may sound a bit like /t/. However, the difference is maintained because /d/ is made with a weaker muscular effort and breath force compared to /t/. Also /t/ can have glottal reinforcement in final position whereas /d/ cannot.