Is davening with 10 people in attendance but only 6 people actually davening equivalent to davening in a minyan where 10 people are davening together or is it less preferable and ideally not something to regularly do (and one should seek out a minyan where all 10 people (or more) are davening together - especially shemoneh esrei) 

Would be grateful for replies with sources.

Thank you so much.