You pay the DC excise tax either at time of purchase (most likely) or time of registration. If the dealer charges you the wrong state tax I believe DC will collect the difference then go after it from the dealer or other state directly.
https://dmv.dc.gov/service/buying-vehicle