This isn't a hard problem. We solved it decades ago. There should be an "Smartphone Kernel" that gets updated like the Linux kernel with drivers for all variety of hardware that you can install on most every phone as is. Vendors could cut out drivers for hardware they aren't using, but a random person should be able to install a generic kernel and boot the phone. Android would be the userland installed on top of that kernel. But it seems like vendors are more interested in maintaining lock-in instead of simplifying their maintenance and update tasks.
Right now Samsung seems to be number one in android phones. what benefit would they get from doing this? Making it easier to update their old products? They don’t care. All that does is make people buy fewer new phones.
Across all the vendors they could save time… but I kind of doubt they’ll ever do it. I don’t think that motivation is strong enough for them to change the way they do things.
I'd like that as well of course but vendors don't seem very interested in cooperating with each other right now.
Having a locked bootloader means I an unable to truly install what I want.
That said, what do you prefer: The ability to install a ROM of your choice, or a guarantee that what you boot is what you bought?