Cold-collision-shift cancellation and inelastic scattering in a Yb optical lattice clock