If the phone is functional (as in you can access the Settings app), you can factory reset from the phone, as well. You can also remote wipe from Find My if need be.
True! Actually, I have an ancient iPad that I’ve forgotten the pin for. I think I’d need a Mac to reset it. Fortunately the reason I forgot the pin is that I got a laptop and stopped using the iPad as my SSH client as a result, haha, so recovery is not really a pressing issue.