They also make $3B in profit every year so they generate a huge amount of tax revenue and will continue to for a very long time with Falcon and Starlink.
And yes, most companies will try to minimize taxes (shareholder obligations and all that), but I do think some use much more aggressive tactics than others and will use every loophole and every accounting trick possible.
That'll eventually change of course, and they'll be the best space game in town.