Probably the best price for features and up to date software is the Nexus 5x 32gb which you can get for $249.
It is unlocked so you can buy it outright without signing a contract. And runs stock Android so it always has the latest software from google.