macOS Monterey Allows You to Erase a Mac Without Needing to Reinstall the Operating System
From the macOS Monterey features page on Apple’s website:
Erase all contents and settings
System Preferences now offers an option to erase all user data and user-installed apps from the system, while maintaining the operating system currently installed. Because storage is always encrypted on Mac systems with Apple silicon or the T2 chip, the system is instantly and securely “erased” by destroying the encryption keys.