Important context: Indonesia and some other countries refusing to let Israelis compete in their events is unusual. Countries usually exempt athletes from travel bans.
Japan allows North Koreans to compete there, e.g. 2019 figure skating worlds. North Koreans usually forego these competitions though. Watanabe also received an exemption from North Korea's travel ban so he could visit Pyongyang.
Azerbaijan allows Armenian nationals and ethnic Armenians to compete there, e.g. 2015 European Games. Again, Armenian nationals usually forego competing in Azerbaijan.