Unless you're booked on V or higher, you will actually get more miles on the 'direct' flight.
It's just that when there were still 2 daily flights operating, it makes sense to book them as seperate segments in case you decide to switch to the other flight which isn't a direct YYZ-HKG (meaning they'll consider it a routing change).