If you already have the 1050Ti, then you can simply use that and decide later whether it is still good enough for whatever it is you want to play at the details and resolution you want to play it.
If you are buying new, I'm skeptical that there are still factory-new 1050Tis left out there and unless you can get one cheaper than the RX6500, the RX6500 makes more sense as long as you don't mind dropping details to whatever is necessary to avoid asset swaps between GPU and system memory.
Thank you, i think i am going to get the rx6500 and use it with what i got right now and then upgrade my motherboard and cpu eventually.I assumed you are on 1080p resolution, but here is a look at the rx6500 on various PCIe types. The GTX 1050 Ti is going be below the GTX 1060 in this chart. I would recommend you get the modern up-to-date rx6500.
AMD Radeon RX 6500 XT PCI-Express Scaling - Relative Performance | TechPowerUp
From this that is a easy answer.Would the 6500xt still be better even if i don’t have PCIe 4.0?
Yup. I expect it to be considerably superior in every way except street price and availability despite its poor hash rate due to the number of people desperate to get something in its performance range under $500.I guess the other thing I would think about is maybe waiting for the new RTX 3050, but that's unlikely to meet your cost and availability needs.