In my experience it usually goes just fine. I’m actually not totally sure what you’re talking about, what does the hardware have to do with it if you’ve got the bootloader unlocked? Assuming you’ve got something common like a Qualcomm SoC, it’s pretty straightforward to take codeaurora or whatever source and AOSP and 90% of the time have an almost fully functional custom image for your device.
Now granted I’ve rooted every phone I’ve had since the HTC Incredible, and I always check XDA forums before buying a new one to see if there’s a decent development community. And in recent years there has been a SHARP drop in the % of manufacturers that even allow their bootloaders to be unlocked - I don’t think the last like 6 samsung galaxy’s have ever been possible to do it. But there are still plenty, I’ve managed to find a kickass flagship model every year or 2 years and upgrade through at least 2 or 3 versions of android (I always buy last- or last-last-gen models used for <$200 so they’re typically a bit out of date already).
I couldn’t imagine any other way honestly. I absolutely love rooting & flashing custom roms, and it’s kept all my phones practically as young and snappy as the day they originally released...or better