Both are painted to look like an eye and that is where the resemblance stops. They are made by different people, for different eyes, and worn differently.
A prosthetic contact lens
A contact lens. Thin, usually soft or on a soft carrier, worn on the eye and removed at the end of the day.
It carries a hand-painted or printed iris, sometimes an occluder pupil, and it is fitted by an optometrist or ophthalmologist after an examination.
It needs an eye of roughly normal size and shape, with a cornea in reasonable condition for a lens to sit on.
A painted shell
An ocular prosthesis, made by an ocularist — a separate specialism — and usually fitted alongside an oculoplastic surgeon.
It is much thicker than a contact lens and is shaped to fill the socket as well as to look right. It is fitted over an eye that is shrunken, blind and disfigured, or where the eye has been removed.
Because it restores volume and contour rather than just colour, it can do something no contact lens can.
What decides between them
The state of the eye, almost entirely.
A reasonably normal eye that sees, or sees a little, and needs its appearance corrected: contact lens.
An eye that is shrunken, painful, very irregular, or absent: shell.
If you have been referred to an ocularist rather than a contact lens fitter, that referral has already answered the question.
Where each falls short
Prosthetic contact lens: it does not restore sight — where the eye sees poorly, the lens changes how it looks and not what it sees. It needs a cornea in a condition to tolerate a lens, which rules it out for many damaged eyes. It cannot add volume to a socket that has lost it. A painted iris cannot react to light, so the match is least convincing in bright sun. And a replacement is weeks away and expensive, because each is made individually.
Painted shell: a bigger undertaking, fitted and maintained within a different specialty, and it belongs to an eye that is no longer working. It is polished and refitted periodically rather than handled daily, and the socket needs its own care. This site covers contact lenses, so a shell is described here only to tell the two apart — your ocularist is the person to ask about one.
Why this page exists
Mostly because the two get conflated in searches, and someone looking for one is sometimes reading about the other. If your eye still has useful structure and a cornea, you are in contact lens territory. If it does not, you are not, and no contact lens fitting will change that.