You might find this video interesting Is a refurbished MacBook worth it?. It is a chap comparing a new MBP with a refurbished one - he goes through a similar process as you have done. He mostly uses the system information to look at the battery etc, but he does use a terminal app to test the SSD - I am not sure but I think it is smartmontools - this Macworld article explains a bit more. Looks complex
I yesterday found a similar article mentioning the same tool and already have this on my todo list (haven’t installed anything on this Mac yet, so no Homebrew there yet).
Did not think of that, but will definitely run it.