Two sides of the same coin
Means that two things that appear to be different are in fact closely related. For example, poor health and low income are different issues but often related. Reward and punishment are different but both are used to influence behaviour etc. The expression dates from the mid-19th century.