51It follows from the Court’s case-law, first, that the comparability or otherwise of a cross-border situation with a domestic situation must be examined having regard to the objective pursued by the national provisions at issue and to the purpose and content of those provisions, and, secondly, that only the relevant distinguishing criteria established by the legislation at issue must be taken into account for the purpose of assessing whether the difference in treatment resulting from such legislation reflects a difference in objective situation (judgments of 27 April 2023, L Fund, C‑537/20, EU:C:2023:339, paragraph 54 and the case-law cited, and of 12 October 2023, BA (Inheritance – Public housing policy in the European Union), C‑670/21, EU:C:2023:763, paragraph 59).