Occam’s razor won’t get you to the correct conclusion for all possible combinations of truth values and evidence, but it is always the best process to follow. You might end up getting new evidence later that means you update your belief, even update it to believe in something which previous evidence meant Occam’s razor lead you to dismiss that conclusion. But it helps you arrive at the best conclusion based on current evidence.
There’s inifinite examples of when occams razor doesn’t hold up though. It’s a useful tool, but by no means an end all be all.
Occam’s razor won’t get you to the correct conclusion for all possible combinations of truth values and evidence, but it is always the best process to follow. You might end up getting new evidence later that means you update your belief, even update it to believe in something which previous evidence meant Occam’s razor lead you to dismiss that conclusion. But it helps you arrive at the best conclusion based on current evidence.