I think the first one has a comma before the word "which" because although what follow that word is restrictive, what is in appositive makes the comma necessary. If no appositive were in place, then no comma would be necessary. - -Sounds good.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.