How “hot” is the real estate market? If it’s hot then the house is a better option.
A trailer depreciates, a house can appreciate if it’s in a good school system.
If you’re only planning to stay in there for 6 years, you have to take into account the taxes, cost of selling and buying the house (closing costs), insurance, utilities, and maintenance/repairs.
Also look at “Days on the market” in your area, too, for the price point of houses in that price point.