Interesting, I've encountered this confusion recently because I get such conflicting advise on a current project.
Bought a kit for a shade sail. It comes with all the brackets, hardware and sails, you buy the lumber and put it together. Pretty nifty.
But I need to mount 4 of 6 of the posts on my concrete patio, and the other two will be on the ground, so I will put them into concrete.
I've gotten exact opposite answers, about half and half, talking to several different lumber yards, I'd say 50/50 split on whether I should use cedar or pressure treated (rated for ground contact) wood.
I have settled on PT as the wiser option (feel free to talk me out of it), but now of course I can't get any.
So I am just working on my suntan instead.