I need camera help

My fujifilm camera doesnt work anymore so I need a new one and I’m considering the following 2

Polaroid Z340 Camera or a Nikon Digital SLR D5200

if so I wanna hear the good/bad stuff about them (because I’m gonna buy one of them through airmiles)

Also does the Nikon have a feature that captures just light and have long exposure times?