Comparative study of Hermitian and non-Hermitian topological dielectric photonic crystals