It’s not a bug, You’ll have to export two TIFF files to make this comparison. No edits are actually applied to the original RAW file, including your perspective correction.
I exported a second tif with crop pasted on the raw.
Indeed the size of the second exported tif is the same as the cropped one (and not the size of the pasted crop on the raw file), so far so good.
But the position is not the same. It is offsetted right and maybe a little bit down.
So I can’t get the same image.
I even checked that the crop on the first tif is inside the image (and not on the added part due to viewpoint correction) and this is ok it is in the pixel generated from raw - just in case the bug comes from this.