Renting: your only option
Welcome to the RTA Forum!
This topic does come up quite frequently and the answer for you will clearly be to rent, for two reasons.
First, buying a car as a foreign tourist is virtually impossible. There's really no way to get the car registered and insured without living here at least on a long term visa. Many have tried, but no one on this board has ever been able to say how it can be done, under the current laws in place.
Second, even if the legals issues were possible to overcome, 4-5 weeks generally isn't long enough for a car purchase to make sense financially. Why you factor in sales taxes, registration license and title fees, insurance (typically sold in 6 month to one year terms), the time needed to find a reasonable car, money for possible repairs, and the loss you'll take from having to sell it quickly at the end, the cost of purchasing for this trip would quite easily exceed the cost of renting. As a very general rule of thumb, you'd need to be traveling for at least 2-3 months before buying one becomes a good decision financially.