If your Doug Fir has on the mill mark or mill stamp the characters "s-GRN" is was surfaced green. Western Wood Products Association (WWPA) specifies such a label can only be applied to Doug Fir "under 20% moisture content." My experience with s-GRN DF suggests the moisture content when my sticks are surfaced is typically somewhere between 19.9 and 19.99 percent.
There are multiple agencies providing mill stamp certifications for SYP. To interpret the mill mark you would need a picture of the entire mill mark to figure out which agency issued the stamp, and then look up the spec for whatever else is in the mill mark on that agency's website. The SEMA (South East lumber Manufacturers Association) grading guide is/was available online as a .pdf, so I didn't buy a paper copy. I have zero hands on experience with SYP, but on paper it is very much like Doug Fir, the best of the regional softwoods for strength and so on. Neither one of SYP or DF are hickory or white oak, but they are both plenty stout, plentiful and inexpensive.
4x4 posts from either will be more than adequate post strength for a loft bed. Bracing against wracking and eventual failure is the more important problem.