So you want a raised garden.
materials don't need to be new ya know...you could check out the local landfill for boards folks get rid of.
As far as cedar goes ,it is nice, but you need at least 1 1/2 inch material to hold the soil. The composite has minimal strength, it is always in need of support or it bends easily.
Me, I would look around, even Doug fir will last 10 years before you need to change it out. By then you may want a new garden anyway.
Some old oak would be great, or some logs, just peel off the bark, they will last a while also.
Seal the ends of the wood, it will last longer.
Have fun with it, be creative.