Good to know. Thanks for your feedback. It certainly isn't fun to hire, train and then be replaced by foreigners. Going years without being hired is especially difficult. Being raised poor, white, hyper religious, kept out of college and forced to teach myself everything from high-school onward made the struggle even harder.
I can imagine that being black as you say made your struggles different than mine, but difficult none the less. Keeping ones skills up to date certainly is essential. I too have never worried about foreigners replacing me.
I do not have a great network. People most certainly don't hire me solely due to being white.
Interestingly, the current issue isn't so much getting hired as it is getting an interview at all. This has started after the rise of chatgpt. No one has bothered to ask me what the issue is and has instead jumped to conclusions which I'm personally quite entertained by. As I said in my original post: my situation is unique.
(Edited some words for clarification)