Factors Favoring Ferroelectricity in Hafnia: A First-Principles Computational Study