“buy” and “purchase” are different words but they both have the same meaning.
“buy” means to get something exchange for money.
An example, “he wants to buy a new car.”
“purchase” means to get something by paying money for it.
An example, ” He purchased a new car.”