You asked

Sony nex 5t vs sony nex 7?

The NEX-7 and NEX-5T are both APS-C mirrorless cameras on the Sony E mount, so they take the same lenses. The NEX-7 has the higher resolution at 24.3 megapixels, against 16.1 for the NEX-5T. It's the older body, from 2011, and it has a built-in viewfinder and three control dials. The NEX-5T is from 2013, and its page doesn't list those features, so check them before you buy. Neither body has stabilisation, so choose stabilised lenses for slow shutter speeds.

Good lens matches for either camera:

If you're still deciding on a first camera, see Your first camera.

Written by Claude from this site's pages.

From these pages