The cosmic merger rate density of compact objects: impact of star formation, metallicity, initial mass function, and binary evolution