I agree with both. Your job is a pretty big part of your life and, like any experience you have, it shapes you.
You’re a complex and constantly evolving human. Your job is a part of you, like it’s your family, friends, education, hobbies, media you consume, ideas, secrets…
So, you’re not your job but your job is a big part of you.
But it is healthy to keep this perspective (Tyler durdens assertion) and always try to grow in some way that isn't involved with money