Putty is the preferred way to repair scratches or other damage to e.g. plastic. It is relatively easy to work with and provides a good bottom to sand down to get a completely smooth transition, which does not become visible under the paint. It is also very common to do special putty work such as "Bad eyes" and the like.