Logical fallacy

Survivorship bias

The argument draws lessons from cases that remained visible, successful, or eligible while overlooking comparable failures or cases that dropped out. The selected survivors may give a distorted picture.

Only intact model ships reaching port while wrecked ones lie below the waterline

Examples

All the stores still open after twenty years advertise in print. Print advertising must guarantee survival, and we need not look at stores that closed.
The sample leaves out stores that closed. Some of them may have advertised in print too.
Every recovered ship in this sample had an intact hull. That proves all ships that sailed had intact hulls.