The Cortex-M controllers just don't seem too competitive for networked applications or anything requiring complex code/IO.
The cost for a full fledged ARM board is quite close to a STM32 with some addons, making me think one would be better off with something like an OrangePi Zero: https://www.aliexpress.com/item/32760774493.html