Stellar Half-mass Radii of 0.5 z < 2.3 Galaxies: Comparison with JWST/NIRCam Half-light Radii