i have both smart phone but better is m8 bcoz i had recently bought them and i had send my samsung s5 many time to service centre till now but it is not fully repaired and samsung service is very bad (hanging smartphone)
but m 8 is never repaired till i have purchased it and it is more faster...