Bassinet (picture below) or rock n' play used for sleeping at night?


I was gifted a rock n' play and I am confused as to what is safe to use for a newborn to sleep in. And I was also gifted this bassinet but it is a hand me down. Which should I use? I'm guess the bassinet will have to be on the bed between my husband and I.