This is from Sistani.org

1410. It is not permissible to absent oneself from the congregational
prayers unduly, and it is not proper to abandon congregational prayers
without a justifiable excuse.

It think this related to my last question.

Could the distance not matter if it is not difficult to travel, since we have cars and such, or do you think the hadiths are literal (as in if you cant see the Masjid prayers are not obligatory)?

If you can attend without much difficulty then you should