TO-3 Transistor replacement needed that does not protrude through the chassis
You could look for a straight replacement in one of the plastic cases like TO-3P or TO-247, such as STW3040 (which is "not recommended for new design") or BUF420AW (surprisingly expensive.)

A better choice might be a pair of TO-220 transistors, but you need to look at the surrounding circuit first.  Bipolar transistors can't be simply paralleled, but need some emitter resistors to ensure they share current properly and don't run away thermally.

For linear operation, most of the important design considerations will be expressed by the safe operating area graph (assuming you use the same size of heat sink, so thermal considerations are OK):



You are considering DC operation, which is the lowest line on the curve.   You need to make sure the operation stays within that lower line.  To just do a part substitution without circuit analysis, you can compare the SOA curve of the replacement with the original part, and make sure the original curve fits under the replacement curve.