The NonAlloc/All methods are tentatively deprecated for all 2D physics queries. They are replaced by the same method with no suffix so in this case “Raycast”. This means you can use a single method which has lots of overloads to achieve the same thing all of which do not produce any memory garbage.
The difference is the arguments and the docs tell you exactly what the arguments are. The docs are being updated to mention this and at a later date, the non-alloc/all will be deprecated so you’ll get a compiler warning.