Four buttons are wired to the ESP32 on IO16, IO17, IO2 and IO18. Which of these is a strapping pin, and what does that mean for the circuit?
IO2 is a strapping pin: the chip samples it at reset to decide the boot mode. A button that pulls it to ground is harmless during normal boot, but IO2 must not be held high when you want to enter the serial download mode.
* Each button pulls its pin to ground. Only IO2 is sampled at reset. *
At reset the ESP32 reads a few pins to configure itself. GPIO0 picks between normal boot and download mode, and for download mode GPIO2 must also be low or floating. An active-low button to GND only ever pulls IO2 low, so it does not block flashing. A circuit that drives IO2 high would. Many DevKit boards also connect an LED to IO2.
IO16, IO17 and IO18 are ordinary GPIOs with no strapping role on the ESP32-DevKitC, which is why they are a comfortable choice for inputs. (ESP-IDF's GPIO reference still flags IO16 and IO17: on WROVER modules they are wired to the PSRAM, so they are only free on WROOM-based boards.) The JTAG pins IO12-IO15 are already in use, and IO12 is the flash-voltage strap covered in the JTAG wiring topic.
Go deeper:
ESP-IDF — GPIO & RTC GPIO (ESP32) — the strapping pins and their restrictions.
ESP32 Datasheet — the strapping-pin table in the boot-configuration section.