During your search for a workaround, you have likely encountered the term

You can manually boot your Android or iOS device into Recovery Mode using hardware buttons to perform a factory reset. Note that on modern Android devices, you will still need the original Google account info due to FRP.

Bypassing PINs, patterns, passwords, Touch ID, or Face ID.