The O-ring distorts and fits into the area as well as it can, but since the back edge isn't smooth, it may hold pressure for awhile, just not for long.
Use denatured Alcohol to remove the sealant, especially if it was Perfect Seal or something like the Permatex mentioned before. Be careful...