I think I'd look at the arrival times rather than the length of the layover. Would the layover actually provide you with a better chance to rest and thereby arrive in a better state for work than the direct option?
I do get the impression QR is better than AY but can't say this for myself as I have not J experience with either.