The STM32G071KBU6: 30 I/O lines in a 5x5 mm 32-UFQFN package.
The base product number STM32G071 spans several Flash and package variants, giving you a migration path if you later need more I/O or a different footprint.
The 5x5 mm 32-UFQFN package with exposed pad helps pull heat into the PCB ground plane.
