Buy a car in another state, pay taxes twice?

We live in Texas (or as we say here “Tax Us”. In one instance where I paid Arizona tax I paid no
Texas tax and the clerk said I actually paid a bit more tax than if I paid Texas Tax. In a second case I bought another AZ car, paid no tax there and then Paid Texas tax. Your experience may differ but it seems there is a reciprocity agreement between states that evens things out.