Whatever wood you use for a raised bed, I suggest coating the inside faces with roofing "cement," essentially tar mixed with a solvent to make it paintable with a stiff brush. I have flower boxes (cypress) that have lasted many years painted on the inside with roofing cement. Low cost stuff, by the way.