I added 2 parts welded to each other, one of them is massless and the other one is not. According to the Roblox documentation Assemblies | Documentation - Roblox Creator Hub, the part that isn’t massless should become the AssemblyRootPart, and it does, until the massless part is connected to an anchored part with a hinge constraint, then the massless part becomes the AssemblyRootPart and gets forced to have mass because of that. However, the anchored part is a completely different assembly due to the connection not being rigid, and should have no effect on the AssemblyRootPart of another assembly.
File with bug:
IncorrectRootPartSelectionBug.rbxl (53.5 KB)