Yeah, you can also combine and use both and still come out ahead.
ESP32 handles IO and streams data somewhere else that does any processing needed on more powerful hardware.
Unless you are space-constrained. Then something like RaspberryPi Compute Module is hard to replace.
Unless you are space-constrained. Then something like RaspberryPi Compute Module is hard to replace.