If that's something you do more than once in a while, definitely opt for the Pro. For any other workload that's less than maxing out CPUs, or just bursty, the Air has been excellent.
I still think the M1 Air was a better value overall. And I liked the curves to it more than the M2's boxy design.
For photography work it's been fine. But I haven't done multiple-minute exports since buying it so I can't really say.
I _can_ say that under my normal workloads (coding web apps, office applications open, chrome with say 20 tabs, often playing chess, live streaming / zoom) heat has never been an issue. It's also my DJ computer for gigs and no issues I've noticed there, although it's not on my lap.
Contrasted with the 2019 intel MBP it's again night and day. Heat was very noticeable, as were heat-related throttling issues. It would just grind to a halt under normal workday loads esp when screen casting zoom + having all my normal apps and IDEs running.