A compact Kabota or anything else isn't going to do what you want and certainly the Kabota has it all over the Mahindra.
I consider the 16 Hp Kabota as compact. Same as the little 4wd JD.
You are in the right HP range, but you need a little bigger tractor to get the weight you need especially when moving dirt that you want to do. When the bucket goes up in front with a full load, your back end comes up too.
Keep looking on Craigs List or ? and watch for something 3-5 yrs old .
Anything new with a bucket, etc. is going to be in the 30K range for what you need.
I run an old 52 Ford 8n with a bucket, blade, brush hog, disc and manure spreader. I think they were rated at about 35 HP.I had the engine rebuilt and I almost run out of power at times I can move soft dirt ,but can't dig much, and it has a small bucket.
Basically if you spend the $20K or less on a little tractor within a year you are going to be kicking yourself in the butt and find as time goes on, it is really inconvenient to borrow the neighbors