Musings on frame design

On the topic of moisture and warping for the beam - what big box lumber would be best for avoiding moisture warp? Osb, pressure treated 2x6’s, something else? Maybe there’s a 10 ft steel fence pole that could be used?