I would pass on both of those cameras.
Neither one has optical image stabilization.

Very small cameras need optical image stabilization.
Small cameras are difficult to hold steady due to their small size and low weight.

If I had to pick one over the other, I would go with the Nikon.
The Sony W320 is a stripped down model, to achieve a low price line,
and it uses an extra thin battery which will reduce the number of shots per charge.

Take a look at the Canon SD1300.

Here is a comparison of specifications: