Drupal 10 lies about access to current url

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Url.php/function/Url%3A%3Aaccess/10

That’s the method that will return false if you give it a URL object that you have created with the <current> keyword, at least, some of the time / Drupal 10, when in a language checking context anyway.

The reasons why are documented here:

Url access / PathValidator not language/options aware

See our comments there:

https://www.drupal.org/project/drupal/issues/2994575#comment-15304249