The luminous X-ray hotspot in 4C 74.26: synchrotron or inverse-Compton emission?