If you can't reset from Settings or you can't use your screen, try a reset with your phone's buttons.
If your phone is on, turn it off. Learn how to turn off your Pixel phone. Press and hold the volume up button and power button at the same time for 10–15 seconds. For Pixel 6 and newer devices: Press and hold the volume down button and power button at the same time for 5–10 seconds until the 'Fastboot mode' screen shows. If you hold the buttons for too long, the phone restarts. If this happens, try again from step 1. Use the volume buttons to change the menu options until 'Recovery mode' is displayed on screen. To select, press the Power button once. On your screen, 'No command' is displayed. Press and hold the Power button. While you hold Power, press the Volume up button and let go of both buttons quickly. Android recovery options should be displayed. With the volume buttons, scroll to 'Wipe data/factory reset' and press the Power button. With the volume buttons, scroll to 'Factory data reset' and press the Power button. Factory reset should start. At the bottom of your screen, when the reset is finished, 'Data wipe complete' is displayed. With the volume buttons, scroll to 'Reboot system now' and press the Power button. To set up your Pixel, after the phone completes the OS install, tap Start. Follow the on-screen instructions to set up your phone and restore your backed-up data
IIRC on modern Android phones, doing this will prompt you to log into the original Google account when setting it up after resetting. If you can't log in, the phone is effectively still locked. It's supposed to be an anti-theft measure so that thieves can't just factory reset and make the phone useful again
Edit: This feature is called Factory Reset Protection, read more at https://support.google.com/android/answer/9459346?hl=en
> If you can't give this information during setup, you won't be able to use the device at all after factory reset.