Onesies or two piece?

Has anyone got any advice? Is it safer or recommended putting new borns in onesies for bed or a two piece? Thanks.