I’ve not had much luck with 12 speed Shimano. Been decades since I ever had gear system trouble, but the 12 speed on the bike I built in 2020 has been fiddly/finicky/untrustworthy from the start and I’ve had two Shimano XT mechs go bad, whether slightly bent, damaged, ‘floppy’ just as you describe.
SJS cyles had the best price for XT last time I replaced. Next time I’ll go with Deore. I might even try thr forbidden fruit of SRAM – I think they seeem to have had more succes with 12 speed.
On the bike I built this year – I used my trusty 11 Speed XTR kit with a HG freehub, and a SunnRace 11-46 casette. And you know what – its got all the range I need, and it works absolutely beautifully – at least 6 years of use onthe mech and shifter, and they are both like new.
Colour me 12 speed cynical – I think they jumped the shark, frankly.