It is a memoir and it is a memoir of man devising a tradition not of God issuing a command, indeed it is explicitly revealing that the custom of the Israelites on the eating of that sinew was a custom created by man rather than commanded by God.
Genesis is part of the Law, and we do find at least one commandment in it - circumcision - and this commandment is also given in the form of a historical event, Genesis 7:9-14. But the event in question in God issuing a command. And that is the general picture that we see in the Pentateuch where commandments are given within the narrative either by God directly, or by Moses. We also see God telling Moses to explain the teaching of circumcision to the Israelites (Leviticus 12:3), but see no mention of this sinew anywhere outside this Genesis narrative.
We do not have to sift through the Pentateuch to discover what things are commands and what are not - what are commands that apply to us is sometimes trickier - since commandments in the Pentateuch have a known commander - either God, or his legitimate agent Moses. Genesis 32:32 gives no such commander, it is a historical aside.
In short, Genesis 32:32 is not what a commandment looks like. It is explaining the origins of a custom that originates neither with the commandments of God nor the customs of foreigners, but the ancestral piety of the children of Israel.