I did find a few eGolfs and leafs for $5k-8k, but in my experience if a car is that cheap there is a reason for that, so I assume they are unacceptable. There is a chance OP has a diesel truck because he needs a truck which in turn means they wouldn't work even new (the F150 lightning perhaps would)
The reason is: no one wants them. Three years ago we sold an OG Leaf my spouse’s coworker for $3500. Battery was about 80%, but otherwise the car was flawless. All the buyer needed was an around-town car, and the old Leaf fit the bill. Leafs didn’t go very far on a charge, ergo they won’t have a whole lot of miles in them, and they were otherwise reliable. If it’s all you need, I’d recommend one for cheap.
I used to be dead-set-against electric cars but I just bought one and am loving it. The maths is staggering. It's secondhand though as I don't believe new ones are worth it.
Now if OP's car is worn out and needs replacing anyway the economics are different.
No matter what you buy, energy was expended to make it! The car you own already has spent the energy. It's done.
So, assuming you're not spitting flames and smoke out wherever you go, your current car will be greener than quite literally anything you can buy, new or secondhand.
Note: I've done zero maths to verify this but it makes perfect sense to me :)