The GTX 1080 (Ti) still works for the vast majority of games in 1080p. The only thing that would really make it obsolete is driver issues.
Also, compared to replacing a CPU, which likely entails replacing motherboard and RAM, upgrading to something like a used or NOS 3070 is easy and inexpensive.