Best M1 developer Mac?

I’m thinking of trading in an Intel MacBook Air for an M1 iMac. Another possibility is an M1 MacBook Air or 13” Pro with a second screen.

I know portability would be a big difference but any other thoughts? I would love to hear your ideas.