Stacking and analyzing MOSDEF galaxies by spectral types: Implications for dust geometry and galaxy evolution