The valve thingy lets everything out. Neither are worth a crap for anything dangerous though...
Yes, that's why when I must wear one I choose the N95 with valve. The hospital employee was trying to tell me it was the other way around, i.e. the value thingy causes everything to go in, as in, we the little people just don't understand the basics.