A tale of two mergers: constraints on kilonova detection in two short GRBs at z$\sim$0.5