If your phone is too damaged to boot, there are still some ways to wipe the data from it. Here are a few options:
Use the Android Device Manager: If you had enabled Android Device Manager on your phone and connected it to your Google account, you can use it to remotely wipe your phone's data. Go to the Android Device Manager website, sign in with your Google account, and select the option to wipe your device.
Use recovery mode: If your phone can still access recovery mode, you can use it to wipe your data. The exact steps may vary depending on your phone model, but typically, you can enter recovery mode by pressing a combination of buttons when the phone is turned off. Once in recovery mode, look for an option to wipe the data/factory reset.
Use a third-party tool: There are third-party tools available, such as TunesBro DroidWiper, that can help wipe data from a damaged phone. These tools require a computer and a USB cable to connect the phone to the computer.