Assessing the significance of fidelity as a figure of merit in quantum state reconstruction of discrete and continuous-variable systems