Firstly best wishes fir ur new phone.
Now as u asked i will better to suggest u that htc one is the better option in front of s4 this m saying after using these both phones. Actually htc has no problems of bug and hanging etc while i n switching from one app. To another but s4 is a little having...