The square cross section seal is the one that flexes and pulls the piston back to a retracted position when you let go
The round cross section seal is a seal for fluid leaks
Having said that, a piston not coming out/ pumping out isn't clearly a seal issue. It sounds more like the brake needs bleeding / more brake fluid added. What have you tried doing to fix these?