IIRC, Bret Weinstein said something like "invest in skills that upgrade your thinking". Coincidentally, many such skills, eg. math and coding, happen to be exactly those where AI also excels at, so I wouldn't rule out learning something simply because AI happens to be good at it.