The commas are needed in both cases, since it seem to be extra information within each set, and 'which is' will also work in both sentences, at least in concept; I admit that it is infelicitous in #2.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.