is PIN To PIN matching mcu against Atmega328P-AU available?
The only other AVR chip with more program memory in the 32/TQFP form factor is the ATMEGA4808 at 48 kB.

Unfortunately, the pinout is not the same compared to the ATMEGA328P-AU:

ATMEGAx8P family datasheet

ATMEGAx08 family datasheet