Breaking baryon-cosmology degeneracy with the electron density power spectrum