A comparative analysis of Hartree-Fock and Kohn-Sham orbital energies