The gear clash was when going into PARK at the end of the INTO NEUTRAL move (sounded like chattering)
Ahhh !! That is the same as shifting into Park while the vehicle is still moving! Once the transfer case is in neutral the output shaft of the transmission is free to rotate. And with the engine running there's nothing to stop it. In effect it's the same condition as if the vehicle still moving as far as the transmission is concerned.
then again when shifting out of PARK at the beginning of the OUT OF NEUTRAL move (more of a distinct clunk).
Engine started, Transmission in Park, Transfer Case in Neutral.
Trans ouput shaft held by Park Pawl (or whatever they call it).
Transfer case output shaft free, not engaged with anything.
Attempt transfer case shift out of neutral.
At this moment the TCCM tries to rotate the encoder/shift motor a small amount to move the hi/lo range shift collar with either the input gear or the planetary shell depending on what position was selected at the 4wd shift switch. If the gearing is not aligned correctly the gear teeth butt up to each other but cannot mesh until one or both of them move a little. I believe there is a spring loaded component in there so nothing is broken while the encoder/shift motor is trying to force the hi/lo shift collar to engage.
If the hi/lo shift collar cannot move and get something engaged before the transmission is shifted out of Park, then the transmission output shaft is going to spin a bit when Park is released and then that shift collar will move to engage in either hi or lo range as directed by the 4wd switch/TCCM.
This clunk will be the same clunk heard when shifting into or out of lo range since it is actually the same items being moved/engaged/disengaged.
I would always treat the shift out of neutral the same as shifting into or out of lo range. That is, I allow the vehicle to move ever so slightly during the shift to aid in getting the gears aligned. I have sometimes actually rocked the vehicle using my left leg on the ground through an open drivers door!!