Probably the first url is better, but when we get down to the details, it becomes a very long discussion, and occasionally a contentious one. Shorter or longer are not the only factors, and the ranking effects of "keywords" in a url are miniscule, though they might help click-throughs. In your question the /products/ directory shouldn't make any difference, but it might lead to confusion. phranque's answer is to the point here.
I'm thinking that your concern may also have to do with directory levels from home.
Essentially, note that
nav structure is not the same as url structure. There's much more to it than length. How do you handle hierarchy with those short urls? Linking everything from home does not scale.
I'm in the process of running out the door, but for now, there's another recent thread on the subject of urls, in which I posted some references and made some comments that might get you thinking in helpful direction.
There is a way, but it's not what's generally supposed. No time to repeat what I posted now, but please check my Aug 16, 2019 answer in this thread...
URL: User-friendly, keyword-optimized, or both? Aug 15, 2019 https://www.webmasterworld.com/google/4960057.htm [webmasterworld.com]
I suggest reading all of the references included in both threads I cite in the above thread, which is a lot. If it's not clear from my posts in those threads, I favor the approach that g1smd suggests. Here's my summation, from one of my posts, that should introduce some of the key factors you need to think about...
Do not construct long urls to include your "keywords". It is a mistake that will result in a very inflexible site, with all kinds of dupe content problems, and will not help in ranking.