As far as which is better, that is a long endless debate. In certain conditions, short wheelbase is better and in others long wheelbase is better.

Your tires are definetely part of your problem. If your friend has mud terrain tires, his performance in the mud will certainly be better than yours, all other things being equal.