hip normally works very well - it's just a ball and socket joint. knee is a bit more tricky.
The technology is there for hip replacements, it would seem.
i don't suggest anyone should not get a replacement based on my non-medic and probably wrong information.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8878498/#:~:tex....