I ride trails on a bike with 1 1/2" of clearance.
Since you can raise and lower the seatpost so much, the "height" of the frame is less critical than the length.
On larger frames, you can set the handlebars higher up, on smaller frames, you can set them lower, whichever you prefer.