On the nature of the quantum chromodynamics phase transition in hybrid compact stars