your luggage will be checked in durding the whole trip, right? so just go outside and spend some time at dubai.
it is very interesting and definitly worth looking around. little hint: it is damn hot in this city so prefer the malls for shopping/walking around