Extract Transform can be used to estimate the rotation difference too. This gives preroll for both rotation and translation.
This HDA works on single and multiple pieces, either packed or unpacked. For packed pieces, it uses their intrinsic transforms.
Download here:
https://github.com/MysteryPancake/Houdini-Fun/tree/main?tab=readme-ov-file#hda-rigid-piece-preroll [github.com]