Depends on what they are used for. Proximity has no mechanical parts to wear out, higher cycle rate, and usually smaller. Limit switches are better for overtravel and other stuff you don't want to risk with a prox not picking up. Limit usually can handle more current and multiple voltages.
One is not better than the other, just depends on use.