Why did the Japanese navy choose to beach their ships, like the Yamato, on Okinawa during Operation Ten-Go instead of other strategies?

Okinawa was a horror show. The Imperial Japanese Army/ Navy showed their hand at Okinawa. The largest Battleship of the time, the Yamato carried 9–18 inch guns and…