Comparison of hard X-ray spectra of luminous radio galaxies and their radio-quiet counterparts