I'm trying to understand the different constructions used for expressing sameness.

So:

я купил тот же автомобиль, что и он

or:

я купил такой же автомобиль, как он купил