Explaining two recent intermediate-luminosity optical transients (ILOTs) by a binary interaction and jets