The damaged area initially appears large and shallow and within the clearcoat only but there are clearly scratches into the first layer of resin. We can't see any trace of loose fibres yet, or they're obscured.
One of the clearcoat's jobs is moisture protection; to shed rain and sweat to keep the underlying layers clean. That layer has been breached.
I'd worry that if the PO took that much care with the paint/frame, where else have they taken minimal care?
Ultimately, its up to you and your tolerance for risk and costs.
I'd buy it if the price was low and the fit was good. However if the cost is more than 10-20% of a new bike, I'd have to think hard about expected mileage/lifespan vs other options.
Bike availability comes into it too - if it was a 60cm frame or larger I'd be more-accepting of other issues because they're uncommon.
A brand new bike will last 10 years minimum and likely double, and won't have damaged carbon to begin with.
Remember, there's always more bikes out there. And the consequence of the top tube failing during a ride are significant.