Those both look fine but you could also just rip the one out of your power supply.
These aren't really doing anything but acting as a pass-through for the electricity, so even if there are a bunch of other things attached to the back of the plug in your computer power supply, you don't really need them. I can't tell from the pics, but in your PS there's probably just some kind of fuse along with some kind of 110/220 regulator or something (since PSs usually have that 110/220v switch on the back) but all you are really needing is the plug itself for its aesthetic look and the ability to plug in/unplug the wire that goes to the wall.
If the PS is really failing and/or just extra parts, I'd just rip the plug out and go from there.