Software engineer here, needs advice for my first Mac system

I am currently a windows user and have no plan to sell my pavilion however I do wanna experience systems as I heard they are good for development being unix.

I am currently confused should I go for Mac mini m4 or MacBook Air m2.

Currently I work remotely however if I switch then I might need to carry my laptop too idk.

Also I do have a separate monitor, keyboard and mouse too .