Depending on your age and vigour, I'd go for the YUL layover and spend the day in YUL and also save yourself paying for a short night as you'll need to be at the airport at 05h even with no checked bags. You'll probably find
accommodation in Vancouver is not cheap in the summer.