The instructions aren't wrong. They're just seventeen steps long, and step eight is irreversible.
Installing LineageOS on a Pixel 4a is seventeen steps: a codename you have to look up, a stock firmware version that has to be exactly right, four fastboot commands, a recovery menu navigated with the volume keys, and a sideload. Miss one and the failure usually turns up several steps later, by which time the phone is already wiped. This reads the handset over USB, works out which of the seventeen apply to it, does the ones a machine should do, and waits on the ones only you can.
It speaks fastboot and ADB directly from the browser over WebUSB, so there's nothing to install and no platform-tools sitting three years out of date. Chromium browsers only: in Firefox and Safari it becomes an ordered, device-specific list of the exact adb and fastboot commands instead, which is still a good deal better than a generic one. The device data is generated from the LineageOS wiki rather than transcribed from it, so all 733 devices the wiki documents are covered: 554 get a full procedure, and the other 179 are told straight out that this can't flash them. The source is on GitHub, and it's worth a read before you point this at a phone you rely on. Verified end to end on a Pixel 4a, from bootloader unlock through to a booted LineageOS.