You can't avoid capital gains without breaking the law or moving country. Not an option for most. Your last line is correct and contradicts the former.