Mass proxy quality of massive halo properties in the ILLUSTRISTNG and FLAMINGO simulations: I. Hot gas