A magnet can attract the opposite pole of the magnet as well as magnetic substances (iron, cobalt, nickel).
So if a magnet attracts another object, we cannot say that other object is a magnet or a magnetic substance.
But if the magnet repels the object then we can surely say that the other object is a magnet because like poles of magnets repel each other.