人と比べるのではなく、過去の自分と比べる。
Do not compare yourself to other people, compare yourself to your past self.
Without any change in meaning, (though I guess it would be less formal in tone), could the writer have just used the -ない form of 比べる instead of nominalising it and then negating the nominalisation?
人と比べなく、過去の自分と比べる。