You really need the get the heat out of the boat…so it must exhaust outside.
i put my window AC in the companionway, and blocked off the area around the unit. It is not convenient for getting in and out of the cabin, and iI had to remove it when I wanted to go sailing.
View attachment 224562
A free-standing AC could work (these use hoses to exhaust the hot air out of the boat). They are not very efficient, but it would offer a little cooling. the unit takes up a lot of space though and needs to be secured when sailing.
A marine AC is the most efficient way to cool a boat, but they are expensive and require a thruhull, water pump, ducting, etc. I struggle to find a good spot to install a marine AC on my 32’ boat.
Greg