I wouldn't give up on it yet, you could try erasing all flash with the esptool.exe.
esptool.exe should get installed with the esp32 board package so you should have it already.
It's easy and goes like this
Make sure there are no other microcontrollers connected to your PC
Open the Windows cmd prompt and type the following
esptool.exe --port COM5 --baud 921600 erase_flash
If you get the message "Chip erase completed successfully" open the Arduino IDE and see if you can compile and upload the blink.ino sketch