both of these sentences look fine. " In this case, if you were to say "the man," you would be referring to a specific man, with the assumption that the reader would know which specific man you're referring to. When you just say "man" it means mankind in general, which I think is what you want here.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.