Nexus phones are all unlockable by nature, and many phones from Motorola and HTC allow you to unlock your bootloader through a similar process as the Nexus.
On a Pixel device or another phone with an unlockablebootloader, you can choose to unlock your bootloader, which allows you to install another operating system, like the LineageOS custom ROM.