Although they can have the same melting point there is still a way to distinguish the two compound from each other , perhaps you can neutral Fecl3 ,that is yellow in colour ,when added to 4bromophenol , it would show a change in colour from yellow to violet when water is added When added to 4bromoaniline , there would be no colour change