Can PWM-controller use STM32F072 to design?

why mppt-controller use STM32F072 to design and pwm-controller use STM32L072 to design?
can they both use STM32F072?
STM32L072 is expensive。
thank you very much。

In theory it can, but it might require some pin swapping. Maybe it can even work out of the box. You would have to check that in detail in the datasheet.

Reason for STM32L72: Less power consumption and more memory (which is needed in our application).