Or you could get married to someone that has low income, but receives (at least in part) decent family medical coverage from their employer. That alone could be worth $3000+ a month.
In general, if you’re sitting on $2M+ of capital gains, one way or another you will eventually pay taxes on those gains (except for famous step up of basis upon death, but then someone else owns it, not you anymore). Even if you do it over 20 years, it’ll be $100k a year. Sure, some can be sheltered by donating here and there, but the bulk is going to be taxed. And if the equity continues to grow over the 20 years you are taking $100k a year in gains, you will have even more gains to deal with at that point.