From Dwarfs To Spirals: Chemical Evolution Of Galaxies Across Stellar Mass And The Implications For Nucleosynthesis