It lasted longer because the damage that the golem does is variable, the first hit it did on the netherite armor did one heart of damage, then some of the other hits did one and a half hearts and others did 2 hearts. They were just lucky enough that the golem didn’t do as much damage to the diamond armor.