The STM32F4 is a Cortex-M4 microcontroller. You have direct access to optimally do whatever you want with the CubeIDE and GCC libraries.
This is a platform, if the things you want to do are possible with the entire stack of Debian, the pre-existing touchscreen menus, the PinPong Python libraries, etc. then sure, use this...but that's a lot of wasted efficiency and a very large dependency.
The STM32F4, for example, can be configured to enter deep sleep and run for a long time on a battery. This likely cannot.