Look at what all the best volume manufactured custom and smart devices are based on these days.. it's ESP :)
Esphome makes life easy.
Your Raspberry Pi will have some difficulties running from battery for months while your ESP will already have a hard time driving a reasonably high resolution display for HMI
The usual HN discussion of RPi goes something like this:
"The RPi 5 has gotten too expensive, these days intel small-form-factor PCs (possible second hand) are a better choice, giving better performance and no messing around with microsd cards"
"I need GPIOs, sub-3-watt power consumption, and I don't need the performance of the most expensive RPi model"
"If you need GPIOs and low power, why not ESP32?"
That chip is ancient, better get a ESP32-C3 or ESP32-C2