40 is great for nearly everything - the advantage of "rigid" is that it's rigid because it's compressed. This puts more fibers in the way of sound passing through it, which (up to a point) makes it more absorbent. If I remember correctly, fluffy fiberglas insulation runs around 1/2 pound per cubic foot - the ideal for both in wall and trap applications is around 2.5-3 PCF (40-48 kG/m^3) -
What you get with the rigid stuff, is approximately equivalent to the same weight of the fluffy stuff, only in less space. So, with 3 PCF rigid, it would take about 12" of the "fluffy stuff" to keep up with 2" of the rigid.
In the case of bass traps, even that isn't a fair comparison - because of the physics of sound absorption, a sound wave has to be near its maximum velocity and minimum pressure when passing through an absorbent before it will do much absorbing. By using compressed absorbent, you have more of it at the right distance from a boundary (1/4 wavelength) so more of that frequency gets absorbed.
"Damn, you know a lot about this stuff!" - Gettin' there - made some MAJOR mistakes building my own rooms about 22 years ago, learned what they were, been putting up with most of them since, and don't plan on repeating them (or any OTHER ones I can avoid) next time... Steve