Photons do have energy (in the stress-energy tensor), so they curve spacetime too, but all particles follow geodesics regardless of mass…so…I guess it is all the same from gravity’s PoV…it is QM that makes a difference…but entanglement doesn’t either (like gravity)…wink wink, nudge nudge…
PS: ok, ok, radiation’s energy density is 1/a⁴ and baryons is 1/a³, so there is a distinction there to having inertia towards gravity.