Open charm phenomenology with a multistage approach to relativistic heavy-ion collisions