Had this issue recently - only thing I could get to work was remove the pads, hold a tyre lever against one of the pistons and pump the brake lever a couple of times to focus all the hydraulic force on freeing the other piston.
Freed it up, but don't pump too many times as fluid starts to leak out if the piston comes out too far.
(This might be a terrible way to do it but worked for me).
Had this issue recently - only thing I could get to work was remove the pads, hold a tyre lever against one of the pistons and pump the brake lever a couple of times to focus all the hydraulic force on freeing the other piston.
Freed it up, but don't pump too many times as fluid starts to leak out if the piston comes out too far.
(This might be a terrible way to do it but worked for me).