Ingredients for solar-like systems: protostar IRAS 16293-2422 B versus comet 67P/Churyumov-Gerasimenko