Impact of pions on binary neutron star mergers