The original question was can you guess the metric from T, for some simple cases, without solving differential equations (and I consider guessing a method of solution; perhaps the most common method - guess and verify). I sidetracked that by suggesting it was an implausible expectation, because it couldn't be done for the trivial case of T=0.
As for g within T, the physical parts of it (e.g. pressure and density) do not contain the metric. This is what you might specify; then the EFE contain g on both sides as an undetermined variable to solve for. Alternatively, if you are given the full T as function in some arbitrary coordinates, you have no idea a priori how the the metric figures in T.
I guess one special case is you know the form of T in terms of g and physical quantities, you are given the physical quantities and the complete expression of T. Then, you could get g. Of course, if you pick these things arbitrarily, the chance of satisfying the EFE is zero.