It's neither. The first really is jam. You can tell, because it has fruit in it.
The second is Jello. That's one of those things we call by the most famous maker of the product -- JellO. (We often call our paper tissues Klenex and our "plasters" are band-aids. Plaster is what's wrapped around a broken limb over here. lol)
Jelly is something like jam, minus fruit. Have you ever seen mint jelly? And, if you have, isn't it something like your second picture in consistence? Or how about jelled cranberry sauce? Not the kind with chunks of cranberries in it, but closer to the kind that looks like that Jello mold. That's jelly.
Some of our jellies are apple jelly, grape jelly (even though the jars call it "jam," there isn't a chunk of concord grape in the batch), and crab apple jelly.
I prefer jam. I like the chunks. Still, I'll call a P & J (our shortened version of peanut butter and jelly) "peanut butter and jelly" knowing I won't make one unless jam's involved. So, just because we say peanut butter and jelly it doesn't necessarily mean jelly.
So. Back at you. If my car gets a flat tire at night. I'm going to get my flashlight out, open the trunk, pull out the spare, and change the tire with a lug wrench. What do you do? (I know all those words aren't your words, but I can rarely remember your words, other than your flashlight is a torch. lol)