Yeah, it's a safe pick. The MQB chassis cars are all really well sorted.
You can pick up a lighty used '18 or '19 A3 for ~25-27K. With the S-Line trim, it's plenty sporty. A nice thing about Audi is the big depreciation--makes them a pretty good deal lightly used.
The other option is a Golf R. The utility with the hatchback is really nice, and unfortunately the US no longer imports the A3 hatch. There are no new ones left, but you can still find one lightly used in the 35-38K range. It's basically an S3 with a hatch, a slightly different interior, and longer warranty (6/72 bumper to bumper).
For me, the R checks all of the boxes. I was considering a fun car along with my wagon. I ended up going to a single car, and if you're looking for a practical performance car, it's hard to beat. Another benefit: insurance is cheap. It seems to be treated by most companies as a regular Golf. Insurance is cheaper than my prior Alltrack or GTI. Weird..