If Paul's teachings in Romans 2 (that those who do good works will be justified and receive eternal life) is literal then there has to be two types of works or else he would be contradicting himself.
If we're not sure about Paul's teaching, and are concerned that he might be "contradicting himself", it might be an idea to study MORE of Paul's teachings, to get a more INFORMED understanding.
How about we study the FOLLOWING?:
Eph. 2:8 ... And this is not your own doing ...
Eph. 2:9 not a result of works, so that no one may boast.
2 Tim. 1:9 who saved us ... not because of our works
Tit. 3:5 he saved us, not because of works ...
Rom. 4:5 And to the one who does not work ... his faith is counted as righteousness,
Rom. 4:6 ... the one to whom God counts righteousness apart from works:
Rom. 11:6 But if it is by grace, it is no longer on the basis of works;
Why is "Romans 2" the ONLY passage by Paul that you care about, and that you want to throw all the rest of Paul's writings in the trash?