YouTube algorithm favors longer view duration based on what I've read. As important as that is, I find retention percentage important as well. It's a good visual representation on how captivating your videos are for your audience. I usually find the video length "sweet spot" and produce videos with that duration in mind. For me, it's about 3 minutes and 30 seconds (averages 75% retention rate).