I don't use windows defender so I can't say.
I can only say how I believe avast deals with spyware, if a spyware file is found, avast alerts and you chose the option you want avast to take. If you choose move to the chest, the best option, the file will be moved to the chest, a protected area where it can do no harm. As far as I'm aware avast also checks the registry for entries related to those files and would deal with those.