Solid wood is the most expensive option but has the greatest strength and stability. It's often used for high-end beds because of its durability and appearance. Veneer wood is cheaper than solid wood but has less strength or stability.
Never confused solid wood with engineered wood. The economical sturdy bed is a plywood bed