iPhone 5s or HTC ONE M8

I love the way how compact and yet powerful the iphone is . I m fine with iOS but I also love the htc one m8 but have had bad times with Android Which one should I get ?. I am a heavy user too Suggestions please ?