IMO, a good lock will have a hammer that is a light press fit with the square drive on the tumbler.
This press fit should not allow the hammer to be easily pried off using wedges, screw driver tips or similar things.
The tumbler and its square drive is hardened steel and usually, the area with the square hole in the hammer or cock is left unhardened.
While this gives the hole in the hammer the ability to expand as the hammer is pressed onto the tumbler drive, it also means, if the hammer or cock is pried off using a wedge or screw driver tip the hole can be damaged.
The resulting damage can eliminate the press fit and create a condition that will become looser and looser with repeated firing of the gun.
This is the reason the square drive on the tumbler should be driven out of the hammer with the use of some sort of metal drift or punch. Preferably one that has a square shape on the driving end, slightly smaller than the square hole in the hammer.
As others have said, the proper way to remove the hammer is to remove the mainspring, sear and, if it has one, the bridle that is holding the tumbler in place. Then, supporting the lockplate on opposite sides of the tumbler and with the underside of the hammer resting against the lockplate, the tumbler is driven out of the hammers drive hole.