Drug Discovery by Automated Adaptation of Chemical Structure and Identity