Capital gains changes will affect investors with identical assets differently. Here’s why