DOC: Removed InvalidComparison and LossySetItemError from docs
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

Towards https://github.com/pandas-dev/pandas/issues/37875

https://github.com/pandas-dev/pandas/pull/48088
https://github.com/pandas-dev/pandas/pull/48687

@jorisvandenbossche @mroeschke : Could you comment if this is OK please? thanks.
Suggested by @MarcoGorelli
I'm still slightly concerned that overtime that these exceptions could leak in public APIs. Maybe it's good to document that they should be internal errors? Do you mean put them back to the documentation and write a note?  > Do you mean put them back to the documentation and write a note?

Yes, I would be partial to keep them in the docs and note in the docstrings that they are internal errors maybe we should just add these to

https://github.com/pandas-dev/pandas/blob/f5a5c8d7f0d1501e5d8ff31b3b5f24c916137d9c/scripts/validate_docstrings.py#L44-L52

and note in the docstring that they're private and get re-raised, and not add examples to them @MarcoGorelli stylers? shouldn't we do it for errors?  yeah I mean to add these two errors to that set ~It looks green @MarcoGorelli ...~
edit: I think I have to merge again > edit: I think I have to merge again

hey - was there a merge conflict? if not, no need to merge