Trouble Commenting via the WP REST API using nonces

I solved it.

add_filter( 'filter_rest_allow_anonymous_comments', '__return_true' );

should be:

add_filter( 'rest_allow_anonymous_comments', '__return_true' );

I found it by looking for the filter itself and saw that it was different than in the original answer.