When writing code in a programming language that has the option of creating standalone functions vs. methods of a class or struct, what is the most relevant objectively-quantifiable reason to choose to implement any specific functionality as a method of the class or type instead of using an independent function that just accepts the object as a parameter?
(This question completely changed from original — which sfiss's answer was in response to — as the original was closed for for being unfocused.)