If the garage does scrap the car, then it’s their tax to get a refund on.
What might be scrap to some is often an opportunity to make a few €uros by others.
I traded in my 15 year old, very unwell car recently, the salesman I bought new from told me that although I was being allowed €3K off list price, all he would get from a smaller dealer for my car would be €250, this is reflected on the invoice and is consistent with what other sales persons told me.
I see on Done Deal, my 15 year old car with a new NCT is now for sale 250Km away for €1,850.