The only way to properly clear pockets with CC right now is to have a separate toolpath for each depth layer. It a problem that been around at least since Nov '22.
Otherwise, what happens is that CC divides the pocket up into ‘regions’, and each region is cleared to full depth before moving on to the next regions. So, if the pocket is simple enough that there is only one region, you get the correct behavior. This behavior was first noticed as ‘slotting’, even when a pocket was created specifically to stop slotting.