ESP8266 costs ~0.90 EUR.
ESP32 costs ~1.80 EUR.
And dev boards with usb, voltage regulator, pinout, etc. cost ~1.6 EUR for ESP8266 and ~2.8 EUR for ESP32.
It all depends on what code you plan running on the device. If you just need a basic micro-controller with wifi and bluetooth, esp8266 is cheaper.