The 4070 is comparatively the best value 40 series card, but 3080 performance for $599 three years later is still pretty lackluster. I think the 7800 XT is a much better buy, albeit I’m not even sure I’d call that card good, and it’s the best one of this generation by a considerable margin.
That being said, it does depend on your location a little bit (in particular, if you’re in Europe and dealing with high energy prices, the 4070 might be a better choice for the considerably better efficiency.