Getting 6'4" headroom in a boat under 40 ft involves some serious compromises:
1) high cabin top = weight high = tender
2) deep hull = excess wetted surface = slow
3) thin grid at keel = flexing structure = leaks
Head room should be consideration, but only one of many. Most important considerations should be centered on sailing qualities.