DEFINITIONS:
HEIR: An heir is generally defined by law of the jurisdiction where the decedent lived. California has a set of rules regarding who an heir is.
BENEFICIARY: A beneficiary can be anyone, including unrelated persons to the decedent who may be named in a trust or other contract.