how to destroy leaves like ravagers

I want to make a certain entity break only leaves, but the /fill destroy command is indiscriminate. any help? /setblock wouldn't really help since the entity is a zombie that can spawn with a scale attribute of 2 to 12

Continue to help post