Back in our youth, all tractors were 2wd. They worked hard and well. Many of them are still on farm, field and estate working.
The tractor then was a manual. It also likely weighed in heavy, with its cast iron body, and heavy iron features. It has large rear tires that turn slowly and surely. They also "only" had 12-24 hp and almost always burnt gasoline.
Today, a typical lighter tractor with nifty features like POWER STEERING rule the day. With Front Wheel Assist, they perform very, very well.
If I had to choose between 20-24 hp on a 2wd or 18-20 hp on 4wd, there'd be no consternation in choosing whatsoever. Oh wait, I did just have that choice!!



No doubt 4wd.
I suspect you ask because if you had $12000 only, and had to choose spending that $12000 on the examples you gave, your $12000 would only buy one or the other. Or, buy used and get both hp and 4wd.