If you do create an extrude and can no longer undo (Z-key), then just select all the verts and do a merge with a very small tolerance or select mesh > cleanup and check non-uniform, laminar faces, faces with zero area, and edges with zero length.
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675