Question What phone to buy?

Hey guys, can you help me pick between samsung galaxy s5 and HTC one m8? thanks in advance.