In case you have trouble unlocking your Pixel 6a (greyed out "OEM unlocking" button in the developer options), this is what worked for me:
- Start the stock Google Android
- Connect the phone to the internet (no need to log into any Google accounts etc.)
- Update the OS to the latest version (at least the build from June)
- Make a factory reset
- Activate the developer options
- Connect the phone to the internet again (this seems to be important)
- The unlock button in the developer options should work now
Good luck!