To connect sensors over RestAPI to InfluxDB or over RestAPI to ESP32 to Home Assistant?

Sensors can super easily connected over an ESP32 module to Home assistant. There are tons of demos for this as for instance this one: We can also connect those also to InfluxDB over RestAPI solutions. Which one is better? If you are a demo maker or developing a community project, we believe that Home Assistant …