Most people buy short pyjamas on the assumption that a vest top and some jersey shorts will do for every warm night of the year, and then wonder why they're awake at 3am peeling the top off because it's bunched up round their ribs. The fit matters more than the print. A set that looks identical to another on a hanger can behave completely differently once you're actually lying down in it.
These earn their place from late spring through to early autumn, and they're brilliant for anyone who runs hot overnight or shares a bed with someone who keeps the heating on like it's personal. They're also the ones that make sense for travelling, since they pack down small and dry fast if you end up washing them in a sink. Where they stop working is layered under a dressing gown in a cold house, or worn as loungewear in front of guests, because most short sets are cut for sleeping, not for answering the door, and the shorts in particular tend to ride up the second you sit cross legged on a sofa. Pair them with anything too heavy, a thick cardigan or a fleece robe, and you lose the entire point of having bought something light in the first place.
Cotton is the one to trust if you sweat at all, because it breathes and softens with washing rather than going bobbly and sad after a few months, though it will shrink slightly in the first couple of washes so don't panic and don't buy the exact size you measured yourself as. Modal and viscose blends feel lovely against the skin, almost cool to the touch, but they snag more easily and I've lost a few waistbands to overenthusiastic tumble drying, so a cooler setting or a line is the safer bet. Before you buy, check the seams at the crotch and underarm, since that's where cheap sets fail first, and check the waistband is a proper fold of elastic rather than a thin strip stitched flat, because that thin strip digs in by month two. A set with a drawstring as well as elastic will outlast one without, every time. Hold the fabric up to the light in the shop if you can, since anything too sheer becomes a problem the moment you're near a window with the lamp on.
What they won't do is cover you on a cold landing at 2am, and no amount of good cotton changes that.