Definitely j5. It is true that the performance should theoretically lie on the huawei side, but the phone itself sharply cools down in the long run. As for Samsung - a metal housing, a great screen are the main advantages, I would personally include multimedia as well, the quality of sound on the headphones is quite good. On the loudspeaker - let's face it, it's a low-budget model, there's nothing to say about it. What p9 lite model do you speak about? 2016 or 2017?
In conclusion - from these two models I would take ... motorola moto g5s, but that's because a clean android is a good android (at least for me)